home *** CD-ROM | disk | FTP | other *** search
Unknown | 1993-11-18 | 14.1 KB | [QUIL/quil] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
| |
100%
| gt2
| HTML (Hyper Text Markup Language) Datei
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [QUIL] |
macFileCreator | [quil] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 00 00 2a 26 41 70 | 70 6c 65 53 63 72 69 70 |....*&Ap|pleScrip|
|00000010| 74 20 31 2e 30 20 4e 65 | 77 20 4c 61 6e 67 75 61 |t 1.0 Ne|w Langua|
|00000020| 67 65 20 46 65 61 74 75 | 72 65 73 0d 0d 54 68 69 |ge Featu|res..Thi|
|00000030| 73 20 64 6f 63 75 6d 65 | 6e 74 20 64 65 73 63 72 |s docume|nt descr|
|00000040| 69 62 65 73 20 41 70 70 | 6c 65 53 63 72 69 70 74 |ibes App|leScript|
|00000050| 20 6c 61 6e 67 75 61 67 | 65 20 66 65 61 74 75 72 | languag|e featur|
|00000060| 65 73 20 77 68 69 63 68 | 20 64 6f 20 6e 6f 74 20 |es which| do not |
|00000070| 61 70 70 65 61 72 20 69 | 6e 20 74 68 65 20 41 70 |appear i|n the Ap|
|00000080| 70 6c 65 53 63 72 69 70 | 74 20 4c 61 6e 67 75 61 |pleScrip|t Langua|
|00000090| 67 65 20 47 75 69 64 65 | 2e 0d 0d a5 20 54 68 65 |ge Guide|.... The|
|000000a0| 20 22 41 70 70 6c 65 53 | 63 72 69 70 74 22 20 67 | "AppleS|cript" g|
|000000b0| 6c 6f 62 61 6c 20 76 61 | 72 69 61 62 6c 65 3a 20 |lobal va|riable: |
|000000c0| 20 54 68 65 20 76 61 72 | 69 61 62 6c 65 20 22 41 | The var|iable "A|
|000000d0| 70 70 6c 65 53 63 72 69 | 70 74 22 20 63 61 6e 20 |ppleScri|pt" can |
|000000e0| 62 65 20 75 73 65 64 20 | 74 6f 20 61 63 63 65 73 |be used |to acces|
|000000f0| 73 20 70 72 6f 70 65 72 | 74 69 65 73 20 6f 66 20 |s proper|ties of |
|00000100| 41 70 70 6c 65 53 63 72 | 69 70 74 20 69 74 73 65 |AppleScr|ipt itse|
|00000110| 6c 66 20 72 61 74 68 65 | 72 20 74 68 61 6e 20 70 |lf rathe|r than p|
|00000120| 72 6f 70 65 72 74 69 65 | 73 20 66 72 6f 6d 20 74 |ropertie|s from t|
|00000130| 68 65 20 63 75 72 72 65 | 6e 74 20 74 61 72 67 65 |he curre|nt targe|
|00000140| 74 2e 20 20 54 68 69 73 | 20 69 73 20 75 73 65 66 |t. This| is usef|
|00000150| 75 6c 20 66 72 6f 6d 20 | 77 69 74 68 69 6e 20 63 |ul from |within c|
|00000160| 6f 6e 74 65 78 74 73 20 | 74 68 61 74 20 77 6f 75 |ontexts |that wou|
|00000170| 6c 64 20 6e 6f 74 20 6f | 74 68 65 72 77 69 73 65 |ld not o|therwise|
|00000180| 20 69 6e 63 6c 75 64 65 | 20 74 68 6f 73 65 20 70 | include| those p|
|00000190| 72 6f 70 65 72 74 69 65 | 73 20 28 73 75 63 68 20 |ropertie|s (such |
|000001a0| 61 73 20 77 69 74 68 69 | 6e 20 73 63 72 69 70 74 |as withi|n script|
|000001b0| 20 6f 62 6a 65 63 74 73 | 29 2e 20 45 78 61 6d 70 | objects|). Examp|
|000001c0| 6c 65 3a 0d 0d 73 63 72 | 69 70 74 20 66 6f 6f 0d |le:..scr|ipt foo.|
|000001d0| 09 6f 6e 20 73 65 74 44 | 65 6c 69 6d 69 74 65 72 |.on setD|elimiter|
|000001e0| 20 74 6f 20 73 0d 09 09 | 73 65 74 20 74 65 78 74 | to s...|set text|
|000001f0| 20 69 74 65 6d 20 64 65 | 6c 69 6d 69 74 65 72 73 | item de|limiters|
|00000200| 20 74 6f 20 7b 73 7d 20 | 2d 2d 20 65 72 72 6f 72 | to {s} |-- error|
|00000210| 2c 20 63 61 6e 27 74 20 | 61 63 63 65 73 73 20 74 |, can't |access t|
|00000220| 65 78 74 20 69 74 65 6d | 20 64 65 6c 69 6d 69 74 |ext item| delimit|
|00000230| 65 72 73 20 61 73 20 70 | 72 6f 70 65 72 74 79 20 |ers as p|roperty |
|00000240| 6f 66 20 66 6f 6f 0d 09 | 65 6e 64 20 73 65 74 44 |of foo..|end setD|
|00000250| 65 6c 69 6d 69 74 65 72 | 0d 09 2d 2d 20 6f 74 68 |elimiter|..-- oth|
|00000260| 65 72 20 68 61 6e 64 6c | 65 72 73 2e 2e 2e 0d 65 |er handl|ers....e|
|00000270| 6e 64 20 73 63 72 69 70 | 74 0d 0d 49 6e 73 74 65 |nd scrip|t..Inste|
|00000280| 61 64 3a 0d 0d 73 63 72 | 69 70 74 20 66 6f 6f 0d |ad:..scr|ipt foo.|
|00000290| 09 6f 6e 20 73 65 74 44 | 65 6c 69 6d 69 74 65 72 |.on setD|elimiter|
|000002a0| 20 74 6f 20 73 0d 09 09 | 73 65 74 20 41 70 70 6c | to s...|set Appl|
|000002b0| 65 53 63 72 69 70 74 27 | 73 20 74 65 78 74 20 69 |eScript'|s text i|
|000002c0| 74 65 6d 20 64 65 6c 69 | 6d 69 74 65 72 73 20 74 |tem deli|miters t|
|000002d0| 6f 20 7b 73 7d 20 2d 2d | 20 6f 6b 2c 20 74 65 78 |o {s} --| ok, tex|
|000002e0| 74 20 69 74 65 6d 20 64 | 65 6c 69 6d 69 74 65 72 |t item d|elimiter|
|000002f0| 73 20 69 73 20 61 20 70 | 72 6f 70 65 72 74 79 20 |s is a p|roperty |
|00000300| 6f 66 20 41 53 0d 09 65 | 6e 64 20 73 65 74 44 65 |of AS..e|nd setDe|
|00000310| 6c 69 6d 69 74 65 72 0d | 09 2d 2d 20 6f 74 68 65 |limiter.|.-- othe|
|00000320| 72 20 68 61 6e 64 6c 65 | 72 73 2e 2e 2e 0d 65 6e |r handle|rs....en|
|00000330| 64 20 73 63 72 69 70 74 | 0d 0d a5 20 54 65 78 74 |d script|... Text|
|00000340| 20 69 74 65 6d 20 64 65 | 6c 69 6d 69 74 65 72 73 | item de|limiters|
|00000350| 3a 20 41 70 70 6c 65 53 | 63 72 69 70 74 20 61 6c |: AppleS|cript al|
|00000360| 6c 6f 77 73 20 79 6f 75 | 20 74 6f 20 73 65 74 20 |lows you| to set |
|00000370| 74 68 65 20 22 74 65 78 | 74 20 69 74 65 6d 20 64 |the "tex|t item d|
|00000380| 65 6c 69 6d 69 74 65 72 | 73 22 20 6f 66 20 61 20 |elimiter|s" of a |
|00000390| 73 63 72 69 70 74 20 74 | 6f 20 62 65 20 61 20 6c |script t|o be a l|
|000003a0| 69 73 74 20 6f 66 20 73 | 74 72 69 6e 67 73 20 75 |ist of s|trings u|
|000003b0| 73 65 64 20 61 73 20 64 | 65 6c 69 6d 69 74 65 72 |sed as d|elimiter|
|000003c0| 73 20 64 75 72 69 6e 67 | 20 63 6f 65 72 63 69 6f |s during| coercio|
|000003d0| 6e 73 20 6f 66 20 6c 69 | 73 74 73 20 74 6f 20 73 |ns of li|sts to s|
|000003e0| 74 72 69 6e 67 73 2c 20 | 61 6e 64 20 77 68 65 6e |trings, |and when|
|000003f0| 20 67 65 74 74 69 6e 67 | 20 74 65 78 74 20 69 74 | getting| text it|
|00000400| 65 6d 73 20 66 72 6f 6d | 20 73 74 72 69 6e 67 73 |ems from| strings|
|00000410| 2e 20 20 49 6e 20 70 61 | 72 74 69 63 75 6c 61 72 |. In pa|rticular|
|00000420| 2c 20 74 68 69 73 20 69 | 73 20 72 65 61 6c 6c 79 |, this i|s really|
|00000430| 20 75 73 65 66 75 6c 20 | 77 68 65 6e 20 70 72 69 | useful |when pri|
|00000440| 6e 74 69 6e 67 20 6c 69 | 73 74 73 2c 20 6f 72 20 |nting li|sts, or |
|00000450| 70 61 72 73 69 6e 67 20 | 66 69 6c 65 6e 61 6d 65 |parsing |filename|
|00000460| 73 2e 20 45 78 61 6d 70 | 6c 65 20 6f 66 20 75 73 |s. Examp|le of us|
|00000470| 65 20 64 75 72 69 6e 67 | 20 63 6f 65 72 63 69 6f |e during| coercio|
|00000480| 6e 3a 0d 0d 7b 22 62 72 | 65 61 64 22 2c 20 22 6d |n:..{"br|ead", "m|
|00000490| 69 6c 6b 22 2c 20 22 62 | 75 74 74 65 72 22 2c 20 |ilk", "b|utter", |
|000004a0| 31 30 2e 34 35 7d 20 61 | 73 20 73 74 72 69 6e 67 |10.45} a|s string|
|000004b0| 0d 2d 2d 3e 20 22 62 72 | 65 61 64 6d 69 6c 6b 62 |.--> "br|eadmilkb|
|000004c0| 75 74 74 65 72 31 30 2e | 34 35 22 09 2d 2d 20 6e |utter10.|45".-- n|
|000004d0| 6f 72 6d 61 6c 20 62 65 | 68 61 76 69 6f 72 0d 0d |ormal be|havior..|
|000004e0| 73 65 74 20 41 70 70 6c | 65 53 63 72 69 70 74 27 |set Appl|eScript'|
|000004f0| 73 20 74 65 78 74 20 69 | 74 65 6d 20 64 65 6c 69 |s text i|tem deli|
|00000500| 6d 69 74 65 72 73 20 74 | 6f 20 7b 22 2c 20 22 7d |miters t|o {", "}|
|00000510| 0d 7b 22 62 72 65 61 64 | 22 2c 20 22 6d 69 6c 6b |.{"bread|", "milk|
|00000520| 22 2c 20 22 62 75 74 74 | 65 72 22 2c 20 31 30 2e |", "butt|er", 10.|
|00000530| 34 35 7d 20 61 73 20 73 | 74 72 69 6e 67 0d 2d 2d |45} as s|tring.--|
|00000540| 3e 20 22 62 72 65 61 64 | 2c 20 6d 69 6c 6b 2c 20 |> "bread|, milk, |
|00000550| 62 75 74 74 65 72 2c 20 | 31 30 2e 34 35 22 09 2d |butter, |10.45".-|
|00000560| 2d 20 69 6e 73 65 72 74 | 73 20 66 69 72 73 74 20 |- insert|s first |
|00000570| 64 65 6c 69 6d 69 74 65 | 72 20 0d 0d 45 78 61 6d |delimite|r ..Exam|
|00000580| 70 6c 65 20 6f 66 20 75 | 73 65 20 77 68 65 6e 20 |ple of u|se when |
|00000590| 65 78 74 72 61 63 74 69 | 6e 67 20 74 65 78 74 20 |extracti|ng text |
|000005a0| 69 74 65 6d 73 3a 0d 0d | 73 65 74 20 41 70 70 6c |items:..|set Appl|
|000005b0| 65 53 63 72 69 70 74 27 | 73 20 74 65 78 74 20 69 |eScript'|s text i|
|000005c0| 74 65 6d 20 64 65 6c 69 | 6d 69 74 65 72 73 20 74 |tem deli|miters t|
|000005d0| 6f 20 7b 22 3a 22 7d 0d | 67 65 74 20 6c 61 73 74 |o {":"}.|get last|
|000005e0| 20 74 65 78 74 20 69 74 | 65 6d 20 6f 66 20 22 53 | text it|em of "S|
|000005f0| 65 71 75 65 6e 74 69 61 | 6c 69 73 6d 3a 43 44 20 |equentia|lism:CD |
|00000600| 43 6f 6e 74 65 6e 74 73 | 3a 52 65 6c 65 61 73 65 |Contents|:Release|
|00000610| 20 4e 6f 74 65 73 22 0d | 2d 2d 3e 20 22 52 65 6c | Notes".|--> "Rel|
|00000620| 65 61 73 65 20 4e 6f 74 | 65 73 22 0d 0d 43 75 72 |ease Not|es"..Cur|
|00000630| 72 65 6e 74 6c 79 2c 20 | 6f 6e 6c 79 20 6f 6e 65 |rently, |only one|
|00000640| 20 74 65 78 74 20 69 74 | 65 6d 20 64 65 6c 69 6d | text it|em delim|
|00000650| 69 74 65 72 20 69 73 20 | 75 73 65 64 20 62 79 20 |iter is |used by |
|00000660| 41 70 70 6c 65 53 63 72 | 69 70 74 20 28 74 68 65 |AppleScr|ipt (the|
|00000670| 20 66 69 72 73 74 20 69 | 6e 20 74 68 65 20 6c 69 | first i|n the li|
|00000680| 73 74 29 2e 20 20 41 6c | 73 6f 2c 20 74 65 78 74 |st). Al|so, text|
|00000690| 20 69 74 65 6d 20 64 65 | 6c 69 6d 69 74 65 72 73 | item de|limiters|
|000006a0| 20 69 73 20 61 20 67 6c | 6f 62 61 6c 2e 20 20 59 | is a gl|obal. Y|
|000006b0| 6f 75 20 6d 61 79 20 77 | 61 6e 74 20 74 6f 20 75 |ou may w|ant to u|
|000006c0| 73 65 20 61 6e 20 65 72 | 72 6f 72 20 68 61 6e 64 |se an er|ror hand|
|000006d0| 6c 65 72 20 74 6f 20 72 | 65 73 65 74 20 69 74 20 |ler to r|eset it |
|000006e0| 74 6f 20 69 74 73 20 66 | 6f 72 6d 65 72 20 76 61 |to its f|ormer va|
|000006f0| 6c 75 65 20 69 66 20 61 | 6e 20 65 72 72 6f 72 20 |lue if a|n error |
|00000700| 6f 63 63 75 72 73 20 74 | 6f 20 65 6e 73 75 72 65 |occurs t|o ensure|
|00000710| 20 74 68 65 20 72 6f 62 | 75 73 74 6e 65 73 73 20 | the rob|ustness |
|00000720| 6f 66 20 79 6f 75 72 20 | 73 63 72 69 70 74 3a 0d |of your |script:.|
|00000730| 0d 73 65 74 20 73 61 76 | 65 64 54 65 78 74 49 74 |.set sav|edTextIt|
|00000740| 65 6d 44 65 6c 69 6d 69 | 74 65 72 73 20 74 6f 20 |emDelimi|ters to |
|00000750| 41 70 70 6c 65 53 63 72 | 69 70 74 27 73 20 74 65 |AppleScr|ipt's te|
|00000760| 78 74 20 69 74 65 6d 20 | 64 65 6c 69 6d 69 74 65 |xt item |delimite|
|00000770| 72 73 0d 74 72 79 0d 09 | 73 65 74 20 41 70 70 6c |rs.try..|set Appl|
|00000780| 65 53 63 72 69 70 74 27 | 73 20 74 65 78 74 20 69 |eScript'|s text i|
|00000790| 74 65 6d 20 64 65 6c 69 | 6d 69 74 65 72 73 20 74 |tem deli|miters t|
|000007a0| 6f 20 7b 22 2a 2a 22 7d | 0d 09 2d 2d 20 72 65 73 |o {"**"}|..-- res|
|000007b0| 74 20 6f 66 20 73 63 72 | 69 70 74 2e 2e 2e 0d 0d |t of scr|ipt.....|
|000007c0| 09 2d 2d 20 66 69 6e 61 | 6c 6c 79 2c 20 72 65 73 |.-- fina|lly, res|
|000007d0| 65 74 20 74 68 65 20 74 | 65 78 74 20 69 74 65 6d |et the t|ext item|
|000007e0| 20 64 65 6c 69 6d 69 74 | 65 72 73 3a 0d 09 73 65 | delimit|ers:..se|
|000007f0| 74 20 41 70 70 6c 65 53 | 63 72 69 70 74 27 73 20 |t AppleS|cript's |
|00000800| 74 65 78 74 20 69 74 65 | 6d 20 64 65 6c 69 6d 69 |text ite|m delimi|
|00000810| 74 65 72 73 20 74 6f 20 | 73 61 76 65 64 54 65 78 |ters to |savedTex|
|00000820| 74 49 74 65 6d 44 65 6c | 69 6d 69 74 65 72 73 0d |tItemDel|imiters.|
|00000830| 6f 6e 20 65 72 72 6f 72 | 20 6d 20 6e 75 6d 62 65 |on error| m numbe|
|00000840| 72 20 6e 20 66 72 6f 6d | 20 66 20 74 6f 20 74 20 |r n from| f to t |
|00000850| 70 61 72 74 69 61 6c 20 | 72 65 73 75 6c 74 20 70 |partial |result p|
|00000860| 0d 09 2d 2d 20 61 6c 73 | 6f 20 72 65 73 65 74 20 |..-- als|o reset |
|00000870| 74 68 65 20 74 65 78 74 | 20 69 74 65 6d 20 64 65 |the text| item de|
|00000880| 6c 69 6d 69 74 65 72 73 | 20 69 66 20 77 65 20 67 |limiters| if we g|
|00000890| 6f 74 20 61 6e 79 20 65 | 72 72 6f 72 3a 0d 09 73 |ot any e|rror:..s|
|000008a0| 65 74 20 41 70 70 6c 65 | 53 63 72 69 70 74 27 73 |et Apple|Script's|
|000008b0| 20 74 65 78 74 20 69 74 | 65 6d 20 64 65 6c 69 6d | text it|em delim|
|000008c0| 69 74 65 72 73 20 74 6f | 20 73 61 76 65 64 54 65 |iters to| savedTe|
|000008d0| 78 74 49 74 65 6d 44 65 | 6c 69 6d 69 74 65 72 73 |xtItemDe|limiters|
|000008e0| 0d 09 2d 2d 20 61 6e 64 | 20 72 65 72 61 69 73 65 |..-- and| reraise|
|000008f0| 20 74 68 65 20 65 72 72 | 6f 72 3a 0d 09 65 72 72 | the err|or:..err|
|00000900| 6f 72 20 6d 20 6e 75 6d | 62 65 72 20 6e 20 66 72 |or m num|ber n fr|
|00000910| 6f 6d 20 66 20 74 6f 20 | 74 20 70 61 72 74 69 61 |om f to |t partia|
|00000920| 6c 20 72 65 73 75 6c 74 | 20 70 0d 65 6e 64 20 74 |l result| p.end t|
|00000930| 72 79 0d 0d a5 20 57 69 | 74 68 20 54 69 6d 65 6f |ry... Wi|th Timeo|
|00000940| 75 74 3a 20 20 54 68 65 | 20 77 69 74 68 20 74 69 |ut: The| with ti|
|00000950| 6d 65 6f 75 74 20 63 6f | 6e 73 74 72 75 63 74 20 |meout co|nstruct |
|00000960| 61 6c 6c 6f 77 73 20 79 | 6f 75 20 74 6f 20 73 70 |allows y|ou to sp|
|00000970| 65 63 69 66 79 20 68 6f | 77 20 6c 6f 6e 67 20 61 |ecify ho|w long a|
|00000980| 20 73 63 72 69 70 74 20 | 73 68 6f 75 6c 64 20 77 | script |should w|
|00000990| 61 69 74 20 62 65 66 6f | 72 65 20 72 61 69 73 69 |ait befo|re raisi|
|000009a0| 6e 67 20 61 20 74 69 6d | 65 6f 75 74 20 65 72 72 |ng a tim|eout err|
|000009b0| 6f 72 20 28 2d 31 37 31 | 39 29 3a 0d 0d 77 69 74 |or (-171|9):..wit|
|000009c0| 68 20 74 69 6d 65 6f 75 | 74 20 6f 66 20 3c 6e 75 |h timeou|t of <nu|
|000009d0| 6d 62 65 72 3e 20 73 65 | 63 6f 6e 64 5b 73 5d 0d |mber> se|cond[s].|
|000009e0| 09 3c 62 6f 64 79 3e 0d | 65 6e 64 20 74 69 6d 65 |.<body>.|end time|
|000009f0| 6f 75 74 0d 0d 4e 6f 74 | 65 20 74 68 61 74 20 77 |out..Not|e that w|
|00000a00| 69 74 68 20 74 69 6d 65 | 6f 75 74 20 6f 6e 6c 79 |ith time|out only|
|00000a10| 20 77 6f 72 6b 73 20 77 | 69 74 68 20 65 76 65 6e | works w|ith even|
|00000a20| 74 73 20 74 6f 20 6f 74 | 68 65 72 20 61 70 70 6c |ts to ot|her appl|
|00000a30| 69 63 61 74 69 6f 6e 73 | 2c 20 6e 6f 74 20 65 76 |ications|, not ev|
|00000a40| 65 6e 74 73 20 6f 72 20 | 4f 53 41 58 20 63 6f 6d |ents or |OSAX com|
|00000a50| 6d 61 6e 64 73 20 73 65 | 6e 74 20 74 6f 20 74 68 |mands se|nt to th|
|00000a60| 65 20 63 75 72 72 65 6e | 74 20 61 70 70 6c 69 63 |e curren|t applic|
|00000a70| 61 74 69 6f 6e 2e 20 20 | 43 75 72 72 65 6e 74 6c |ation. |Currentl|
|00000a80| 79 20 6f 6e 6c 79 20 74 | 69 6d 65 20 69 6e 20 73 |y only t|ime in s|
|00000a90| 65 63 6f 6e 64 73 20 63 | 61 6e 20 62 65 20 73 70 |econds c|an be sp|
|00000aa0| 65 63 69 66 69 65 64 2e | 20 20 49 66 20 61 6e 79 |ecified.| If any|
|00000ab0| 20 65 72 72 6f 72 20 6f | 63 63 75 72 73 20 77 69 | error o|ccurs wi|
|00000ac0| 74 68 69 6e 20 74 68 65 | 20 62 6f 64 79 20 6f 66 |thin the| body of|
|00000ad0| 20 74 68 65 20 77 69 74 | 68 20 74 69 6d 65 6f 75 | the wit|h timeou|
|00000ae0| 74 20 63 6f 6e 73 74 72 | 75 63 74 2c 20 74 68 65 |t constr|uct, the|
|00000af0| 20 74 69 6d 65 6f 75 74 | 20 76 61 6c 75 65 20 69 | timeout| value i|
|00000b00| 73 20 72 65 73 65 74 20 | 74 6f 20 74 68 65 20 76 |s reset |to the v|
|00000b10| 61 6c 75 65 20 69 74 20 | 77 61 73 20 62 65 66 6f |alue it |was befo|
|00000b20| 72 65 20 65 6e 74 65 72 | 69 6e 67 20 74 68 65 20 |re enter|ing the |
|00000b30| 77 69 74 68 20 74 69 6d | 65 6f 75 74 20 63 6f 6e |with tim|eout con|
|00000b40| 73 74 72 75 63 74 2e 20 | 20 0d 0d 48 65 72 65 27 |struct. | ..Here'|
|00000b50| 73 20 61 6e 20 65 78 61 | 6d 70 6c 65 3a 0d 0d 77 |s an exa|mple:..w|
|00000b60| 69 74 68 20 74 69 6d 65 | 6f 75 74 20 6f 66 20 31 |ith time|out of 1|
|00000b70| 20 73 65 63 6f 6e 64 0d | 09 74 65 6c 6c 20 61 70 | second.|.tell ap|
|00000b80| 70 6c 69 63 61 74 69 6f | 6e 20 22 53 63 72 69 70 |plicatio|n "Scrip|
|00000b90| 74 61 62 6c 65 20 54 65 | 78 74 20 45 64 69 74 6f |table Te|xt Edito|
|00000ba0| 72 22 20 74 6f 20 67 65 | 74 20 77 6f 72 64 20 31 |r" to ge|t word 1|
|00000bb0| 20 6f 66 20 66 69 72 73 | 74 20 64 6f 63 75 6d 65 | of firs|t docume|
|00000bc0| 6e 74 0d 65 6e 64 20 74 | 69 6d 65 6f 75 74 0d 0d |nt.end t|imeout..|
|00000bd0| 54 68 69 73 20 65 78 61 | 6d 70 6c 65 20 77 69 6c |This exa|mple wil|
|00000be0| 6c 20 6d 6f 73 74 20 6c | 69 6b 65 6c 79 20 74 69 |l most l|ikely ti|
|00000bf0| 6d 65 6f 75 74 20 62 65 | 66 6f 72 65 20 53 63 72 |meout be|fore Scr|
|00000c00| 69 70 74 61 62 6c 65 20 | 54 65 78 74 20 45 64 69 |iptable |Text Edi|
|00000c10| 74 6f 72 20 67 65 74 73 | 20 61 20 63 68 61 6e 63 |tor gets| a chanc|
|00000c20| 65 20 74 6f 20 72 65 73 | 70 6f 6e 64 2e 20 20 54 |e to res|pond. T|
|00000c30| 68 65 20 64 65 66 61 75 | 6c 74 20 74 69 6d 65 6f |he defau|lt timeo|
|00000c40| 75 74 20 69 73 20 31 32 | 30 20 73 65 63 6f 6e 64 |ut is 12|0 second|
|00000c50| 73 20 28 32 20 6d 69 6e | 75 74 65 73 29 2e 0d 0d |s (2 min|utes)...|
|00000c60| a5 20 57 69 74 68 20 54 | 72 61 6e 73 61 63 74 69 |. With T|ransacti|
|00000c70| 6f 6e 3a 20 20 54 68 65 | 20 77 69 74 68 20 74 72 |on: The| with tr|
|00000c80| 61 6e 73 61 63 74 69 6f | 6e 20 63 6f 6e 73 74 72 |ansactio|n constr|
|00000c90| 75 63 74 20 61 6c 6c 6f | 77 73 20 79 6f 75 20 74 |uct allo|ws you t|
|00000ca0| 6f 20 73 70 65 63 69 66 | 79 20 74 68 61 74 20 61 |o specif|y that a|
|00000cb0| 20 73 65 71 75 65 6e 63 | 65 20 6f 66 20 65 76 65 | sequenc|e of eve|
|00000cc0| 6e 74 73 20 73 68 6f 75 | 6c 64 20 62 65 20 70 65 |nts shou|ld be pe|
|00000cd0| 72 66 6f 72 6d 65 64 20 | 61 73 20 61 6e 20 61 74 |rformed |as an at|
|00000ce0| 6f 6d 69 63 20 6f 70 65 | 72 61 74 69 6f 6e 2e 20 |omic ope|ration. |
|00000cf0| 4e 6f 74 65 20 74 68 61 | 74 20 77 69 74 68 20 74 |Note tha|t with t|
|00000d00| 72 61 6e 73 61 63 74 69 | 6f 6e 20 6f 6e 6c 79 20 |ransacti|on only |
|00000d10| 77 6f 72 6b 73 20 77 69 | 74 68 20 61 70 70 6c 69 |works wi|th appli|
|00000d20| 63 61 74 69 6f 6e 73 20 | 74 68 61 74 20 73 75 70 |cations |that sup|
|00000d30| 70 6f 72 74 20 74 68 65 | 20 6e 6f 74 69 6f 6e 20 |port the| notion |
|00000d40| 6f 66 20 74 72 61 6e 73 | 61 63 74 69 6f 6e 73 20 |of trans|actions |
|00000d50| 28 73 75 63 68 20 61 73 | 20 64 61 74 61 62 61 73 |(such as| databas|
|00000d60| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 29 2e |e applic|ations).|
|00000d70| 20 48 65 72 65 27 73 20 | 74 68 65 20 73 79 6e 74 | Here's |the synt|
|00000d80| 61 78 3a 0d 0d 77 69 74 | 68 20 74 72 61 6e 73 61 |ax:..wit|h transa|
|00000d90| 63 74 69 6f 6e 20 5b 3c | 73 65 73 73 69 6f 6e 3e |ction [<|session>|
|00000da0| 5d 0d 09 3c 62 6f 64 79 | 3e 0d 65 6e 64 20 74 72 |]..<body|>.end tr|
|00000db0| 61 6e 73 61 63 74 69 6f | 6e 0d 0d 57 68 65 6e 20 |ansactio|n..When |
|00000dc0| 74 68 65 20 77 69 74 68 | 20 74 72 61 6e 73 61 63 |the with| transac|
|00000dd0| 74 69 6f 6e 20 63 6f 6e | 73 74 72 75 63 74 20 69 |tion con|struct i|
|00000de0| 73 20 65 6e 74 65 72 65 | 64 2c 20 61 20 42 65 67 |s entere|d, a Beg|
|00000df0| 69 6e 54 72 61 6e 73 61 | 63 74 69 6f 6e 20 65 76 |inTransa|ction ev|
|00000e00| 65 6e 74 20 69 73 20 73 | 65 6e 74 20 74 6f 20 74 |ent is s|ent to t|
|00000e10| 68 65 20 63 75 72 72 65 | 6e 74 20 61 70 70 6c 69 |he curre|nt appli|
|00000e20| 63 61 74 69 6f 6e 20 28 | 65 73 74 61 62 6c 69 73 |cation (|establis|
|00000e30| 68 65 64 20 62 79 20 61 | 6e 20 65 6e 63 6c 6f 73 |hed by a|n enclos|
|00000e40| 69 6e 67 20 74 65 6c 6c | 20 73 74 61 74 65 6d 65 |ing tell| stateme|
|00000e50| 6e 74 29 2e 20 20 54 68 | 65 20 74 72 61 6e 73 61 |nt). Th|e transa|
|00000e60| 63 74 69 6f 6e 20 69 64 | 20 72 65 74 75 72 6e 65 |ction id| returne|
|00000e70| 64 20 66 72 6f 6d 20 74 | 68 65 20 42 65 67 69 6e |d from t|he Begin|
|00000e80| 54 72 61 6e 73 61 63 74 | 69 6f 6e 20 65 76 65 6e |Transact|ion even|
|00000e90| 74 20 77 69 6c 6c 20 62 | 65 20 61 74 74 61 63 68 |t will b|e attach|
|00000ea0| 65 64 20 74 6f 20 65 76 | 65 72 79 20 65 76 65 6e |ed to ev|ery even|
|00000eb0| 74 20 69 6e 20 74 68 65 | 20 62 6f 64 79 20 6f 66 |t in the| body of|
|00000ec0| 20 74 68 65 20 77 69 74 | 68 20 74 72 61 6e 73 61 | the wit|h transa|
|00000ed0| 63 74 69 6f 6e 20 62 6c | 6f 63 6b 20 74 68 61 74 |ction bl|ock that|
|00000ee0| 20 69 73 20 73 65 6e 74 | 20 74 6f 20 74 68 61 74 | is sent| to that|
|00000ef0| 20 73 61 6d 65 20 74 61 | 72 67 65 74 20 61 70 70 | same ta|rget app|
|00000f00| 6c 69 63 61 74 69 6f 6e | 2e 20 20 55 70 6f 6e 20 |lication|. Upon |
|00000f10| 65 78 69 74 20 66 72 6f | 6d 20 74 68 65 20 63 6f |exit fro|m the co|
|00000f20| 6e 73 74 72 75 63 74 2c | 20 61 6e 20 45 6e 64 54 |nstruct,| an EndT|
|00000f30| 72 61 6e 73 61 63 74 69 | 6f 6e 20 65 76 65 6e 74 |ransacti|on event|
|00000f40| 20 69 73 20 73 65 6e 74 | 2e 20 20 49 66 20 61 6e | is sent|. If an|
|00000f50| 79 20 65 72 72 6f 72 20 | 6f 63 63 75 72 73 20 77 |y error |occurs w|
|00000f60| 69 74 68 69 6e 20 74 68 | 65 20 62 6f 64 79 20 6f |ithin th|e body o|
|00000f70| 66 20 74 68 65 20 77 69 | 74 68 20 74 72 61 6e 73 |f the wi|th trans|
|00000f80| 61 63 74 69 6f 6e 20 63 | 6f 6e 73 74 72 75 63 74 |action c|onstruct|
|00000f90| 2c 20 74 68 65 20 45 6e | 64 54 72 61 6e 73 61 63 |, the En|dTransac|
|00000fa0| 74 69 6f 6e 20 65 76 65 | 6e 74 20 69 73 20 73 74 |tion eve|nt is st|
|00000fb0| 69 6c 6c 20 73 65 6e 74 | 2c 20 61 6e 64 20 74 68 |ill sent|, and th|
|00000fc0| 65 20 65 72 72 6f 72 20 | 69 73 20 72 65 73 69 67 |e error |is resig|
|00000fd0| 6e 61 6c 65 64 2e 20 20 | 28 53 65 65 20 74 68 65 |naled. |(See the|
|00000fe0| 20 41 45 52 65 67 69 73 | 74 72 79 20 44 61 74 61 | AERegis|try Data|
|00000ff0| 62 61 73 65 20 73 75 69 | 74 65 20 66 6f 72 20 61 |base sui|te for a|
|00001000| 20 64 65 73 63 72 69 70 | 74 69 6f 6e 20 6f 66 20 | descrip|tion of |
|00001010| 74 68 65 20 42 65 67 69 | 6e 54 72 61 6e 73 61 63 |the Begi|nTransac|
|00001020| 74 69 6f 6e 20 61 6e 64 | 20 45 6e 64 54 72 61 6e |tion and| EndTran|
|00001030| 73 61 63 74 69 6f 6e 20 | 65 76 65 6e 74 73 2e 29 |saction |events.)|
|00001040| 0d 0d 41 6e 20 6f 70 74 | 69 6f 6e 61 6c 20 73 65 |..An opt|ional se|
|00001050| 73 73 69 6f 6e 20 6f 62 | 6a 65 63 74 20 63 61 6e |ssion ob|ject can|
|00001060| 20 62 65 20 73 75 70 70 | 6c 69 65 64 20 77 68 69 | be supp|lied whi|
|00001070| 63 68 20 77 69 6c 6c 20 | 62 65 20 75 73 65 64 20 |ch will |be used |
|00001080| 61 73 20 74 68 65 20 64 | 69 72 65 63 74 20 70 61 |as the d|irect pa|
|00001090| 72 61 6d 65 74 65 72 20 | 6f 66 20 74 68 65 20 42 |rameter |of the B|
|000010a0| 65 67 69 6e 54 72 61 6e | 73 61 63 74 69 6f 6e 20 |eginTran|saction |
|000010b0| 65 76 65 6e 74 2e 20 48 | 65 72 65 27 73 20 61 6e |event. H|ere's an|
|000010c0| 20 65 78 61 6d 70 6c 65 | 3a 0d 0d 74 65 6c 6c 20 | example|:..tell |
|000010d0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 22 53 75 70 |applicat|ion "Sup|
|000010e0| 65 72 20 44 42 22 0d 09 | 73 65 74 20 6d 79 53 65 |er DB"..|set mySe|
|000010f0| 73 73 69 6f 6e 20 74 6f | 20 6d 61 6b 65 20 73 65 |ssion to| make se|
|00001100| 73 73 69 6f 6e 20 77 69 | 74 68 20 64 61 74 61 20 |ssion wi|th data |
|00001110| 7b 2e 2e 2e 7d 0d 09 77 | 69 74 68 20 74 72 61 6e |{...}..w|ith tran|
|00001120| 73 61 63 74 69 6f 6e 20 | 6d 79 53 65 73 73 69 6f |saction |mySessio|
|00001130| 6e 0d 09 09 2e 2e 2e 0d | 09 65 6e 64 20 74 72 61 |n.......|.end tra|
|00001140| 6e 73 61 63 74 69 6f 6e | 0d 65 6e 64 20 74 65 6c |nsaction|.end tel|
|00001150| 6c 0d 0d a5 20 22 54 6f | 22 20 6b 65 79 77 6f 72 |l... "To|" keywor|
|00001160| 64 20 66 6f 72 20 65 72 | 72 6f 72 20 68 61 6e 64 |d for er|ror hand|
|00001170| 6c 65 72 73 3a 20 57 68 | 65 6e 20 65 72 72 6f 72 |lers: Wh|en error|
|00001180| 73 20 61 72 65 20 68 61 | 6e 64 6c 65 64 20 62 79 |s are ha|ndled by|
|00001190| 20 61 20 73 63 72 69 70 | 74 20 77 69 74 68 20 61 | a scrip|t with a|
|000011a0| 6e 20 22 6f 6e 20 65 72 | 72 6f 72 22 20 68 61 6e |n "on er|ror" han|
|000011b0| 64 6c 65 72 2c 20 74 68 | 65 20 22 74 6f 22 20 6b |dler, th|e "to" k|
|000011c0| 65 79 77 6f 72 64 20 63 | 61 6e 20 62 65 20 75 73 |eyword c|an be us|
|000011d0| 65 64 20 74 6f 20 63 61 | 70 74 75 72 65 20 61 64 |ed to ca|pture ad|
|000011e0| 64 69 74 69 6f 6e 61 6c | 20 65 72 72 6f 72 20 69 |ditional| error i|
|000011f0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 69 6e 20 61 64 |nformati|on in ad|
|00001200| 64 69 74 69 6f 6e 20 74 | 6f 20 74 68 65 20 73 74 |dition t|o the st|
|00001210| 61 6e 64 61 72 64 20 22 | 6e 75 6d 62 65 72 22 2c |andard "|number",|
|00001220| 20 22 66 72 6f 6d 22 20 | 61 6e 64 20 22 70 61 72 | "from" |and "par|
|00001230| 74 69 61 6c 20 72 65 73 | 75 6c 74 22 20 6b 65 79 |tial res|ult" key|
|00001240| 77 6f 72 64 73 2e 20 20 | 44 75 72 69 6e 67 20 61 |words. |During a|
|00001250| 20 63 6f 65 72 63 69 6f | 6e 20 66 61 69 6c 75 72 | coercio|n failur|
|00001260| 65 2c 20 74 68 69 73 20 | 70 61 72 61 6d 65 74 65 |e, this |paramete|
|00001270| 72 20 69 73 20 62 6f 75 | 6e 64 20 74 6f 20 74 68 |r is bou|nd to th|
|00001280| 65 20 63 6c 61 73 73 20 | 6f 66 20 74 68 65 20 63 |e class |of the c|
|00001290| 6f 65 72 63 69 6f 6e 20 | 74 68 61 74 20 66 61 69 |oercion |that fai|
|000012a0| 6c 65 64 3a 0d 0d 74 72 | 79 0d 09 2e 2e 2e 0d 09 |led:..tr|y.......|
|000012b0| 78 20 61 73 20 69 6e 74 | 65 67 65 72 0d 09 2e 2e |x as int|eger....|
|000012c0| 2e 0d 6f 6e 20 65 72 72 | 6f 72 20 6d 20 6e 75 6d |..on err|or m num|
|000012d0| 62 65 72 20 6e 20 66 72 | 6f 6d 20 66 20 74 6f 20 |ber n fr|om f to |
|000012e0| 74 20 70 61 72 74 69 61 | 6c 20 72 65 73 75 6c 74 |t partia|l result|
|000012f0| 20 70 0d 09 69 66 20 6e | 20 3d 20 2d 31 37 30 30 | p..if n| = -1700|
|00001300| 20 61 6e 64 20 74 20 3d | 20 69 6e 74 65 67 65 72 | and t =| integer|
|00001310| 20 74 68 65 6e 0d 09 09 | 2d 2d 20 79 6f 75 20 6d | then...|-- you m|
|00001320| 69 67 68 74 20 77 61 6e | 74 20 74 6f 20 64 6f 20 |ight wan|t to do |
|00001330| 73 6f 6d 65 74 68 69 6e | 67 20 6d 6f 72 65 20 75 |somethin|g more u|
|00001340| 73 65 66 75 6c 20 68 65 | 72 65 2c 20 62 75 74 20 |seful he|re, but |
|00001350| 66 6f 72 20 6e 6f 77 2e | 2e 2e 0d 09 09 72 65 74 |for now.|.....ret|
|00001360| 75 72 6e 20 66 20 61 73 | 20 6e 75 6d 62 65 72 0d |urn f as| number.|
|00001370| 09 65 6c 73 65 0d 09 09 | 65 72 72 6f 72 20 6d 20 |.else...|error m |
|00001380| 6e 75 6d 62 65 72 20 6e | 20 66 72 6f 6d 20 66 20 |number n| from f |
|00001390| 74 6f 20 74 20 70 61 72 | 74 69 61 6c 20 72 65 73 |to t par|tial res|
|000013a0| 75 6c 74 20 70 0d 09 65 | 6e 64 20 69 66 0d 65 6e |ult p..e|nd if.en|
|000013b0| 64 20 74 72 79 0d 0d 0d | a5 20 53 63 72 69 70 74 |d try...|. Script|
|000013c0| 20 6f 62 6a 65 63 74 20 | 69 6e 68 65 72 69 74 61 | object |inherita|
|000013d0| 6e 63 65 3a 20 54 68 65 | 20 41 70 70 6c 65 53 63 |nce: The| AppleSc|
|000013e0| 72 69 70 74 20 4c 61 6e | 67 75 61 67 65 20 47 75 |ript Lan|guage Gu|
|000013f0| 69 64 65 20 64 65 73 63 | 72 69 62 65 73 20 73 63 |ide desc|ribes sc|
|00001400| 72 69 70 74 20 6f 62 6a | 65 63 74 73 2c 20 41 70 |ript obj|ects, Ap|
|00001410| 70 6c 65 53 63 72 69 70 | 74 27 73 20 6f 62 6a 65 |pleScrip|t's obje|
|00001420| 63 74 2d 6f 72 69 65 6e | 74 65 64 20 70 72 6f 67 |ct-orien|ted prog|
|00001430| 72 61 6d 6d 69 6e 67 20 | 66 65 61 74 75 72 65 2c |ramming |feature,|
|00001440| 20 62 75 74 20 64 6f 65 | 73 20 6e 6f 74 20 65 6c | but doe|s not el|
|00001450| 61 62 6f 72 61 74 65 20 | 6f 6e 20 74 68 65 20 6d |aborate |on the m|
|00001460| 65 63 68 61 6e 69 63 73 | 20 6f 66 20 69 6e 68 65 |echanics| of inhe|
|00001470| 72 69 74 61 6e 63 65 2e | 20 20 54 68 65 20 73 69 |ritance.| The si|
|00001480| 67 6e 69 66 69 63 61 6e | 74 20 66 65 61 74 75 72 |gnifican|t featur|
|00001490| 65 20 6f 66 20 41 70 70 | 6c 65 53 63 72 69 70 74 |e of App|leScript|
|000014a0| 27 73 20 69 6e 68 65 72 | 69 74 61 6e 63 65 20 6d |'s inher|itance m|
|000014b0| 65 63 68 61 6e 69 73 6d | 20 69 73 20 74 68 61 74 |echanism| is that|
|000014c0| 20 69 74 20 6d 61 69 6e | 74 61 69 6e 73 20 74 68 | it main|tains th|
|000014d0| 65 20 6f 72 69 67 69 6e | 61 6c 20 22 73 65 6c 66 |e origin|al "self|
|000014e0| 22 20 61 72 67 75 6d 65 | 6e 74 20 65 76 65 6e 20 |" argume|nt even |
|000014f0| 77 68 65 6e 20 6d 65 74 | 68 6f 64 73 20 61 72 65 |when met|hods are|
|00001500| 20 69 6e 68 65 72 69 74 | 65 64 2e 20 20 54 68 69 | inherit|ed. Thi|
|00001510| 73 20 6d 65 61 6e 73 20 | 74 68 61 74 20 61 6e 79 |s means |that any|
|00001520| 20 6d 65 73 73 61 67 65 | 73 20 73 65 6e 64 20 74 | message|s send t|
|00001530| 6f 20 73 65 6c 66 20 69 | 6e 20 61 20 6d 65 74 68 |o self i|n a meth|
|00001540| 6f 64 20 69 6e 68 65 72 | 69 74 65 64 20 66 72 6f |od inher|ited fro|
|00001550| 6d 20 61 20 70 61 72 65 | 6e 74 20 67 65 74 20 73 |m a pare|nt get s|
|00001560| 65 6e 74 20 62 61 63 6b | 20 74 6f 20 74 68 65 20 |ent back| to the |
|00001570| 63 68 69 6c 64 2e 20 20 | 49 6e 20 74 68 65 20 66 |child. |In the f|
|00001580| 6f 6c 6c 6f 77 69 6e 67 | 20 64 65 73 63 72 69 70 |ollowing| descrip|
|00001590| 74 69 6f 6e 20 77 69 6c | 6c 20 77 69 6c 6c 20 73 |tion wil|l will s|
|000015a0| 68 6f 77 20 68 6f 77 20 | 74 68 69 73 20 77 6f 72 |how how |this wor|
|000015b0| 6b 73 2c 20 61 6e 64 20 | 77 68 79 20 69 74 20 69 |ks, and |why it i|
|000015c0| 73 20 75 73 65 66 75 6c | 2e 0d 0d 46 75 72 74 68 |s useful|...Furth|
|000015d0| 65 72 6d 6f 72 65 2c 20 | 73 63 72 69 70 74 20 6f |ermore, |script o|
|000015e0| 62 6a 65 63 74 73 20 73 | 75 70 70 6f 72 74 20 22 |bjects s|upport "|
|000015f0| 64 65 6c 65 67 61 74 69 | 6f 6e 22 2d 73 74 79 6c |delegati|on"-styl|
|00001600| 65 20 69 6e 68 65 72 69 | 74 61 6e 63 65 2e 20 20 |e inheri|tance. |
|00001610| 44 65 6c 65 67 61 74 69 | 6f 6e 20 6d 65 61 6e 73 |Delegati|on means|
|00001620| 20 74 68 61 74 20 73 63 | 72 69 70 74 20 6f 62 6a | that sc|ript obj|
|00001630| 65 63 74 73 20 63 61 6e | 20 66 6f 72 77 61 72 64 |ects can| forward|
|00001640| 20 6d 65 73 73 61 67 65 | 73 20 6f 6e 20 74 6f 20 | message|s on to |
|00001650| 61 20 70 61 72 65 6e 74 | 20 77 68 6f 20 6d 61 79 |a parent| who may|
|00001660| 20 63 68 6f 6f 73 65 20 | 74 6f 20 68 61 6e 64 6c | choose |to handl|
|00001670| 65 20 74 68 65 20 6d 65 | 73 73 61 67 65 2e 20 20 |e the me|ssage. |
|00001680| 53 63 72 69 70 74 20 6f | 62 6a 65 63 74 73 20 63 |Script o|bjects c|
|00001690| 75 72 72 65 6e 74 6c 79 | 20 6f 6e 6c 79 20 73 75 |urrently| only su|
|000016a0| 70 70 6f 72 74 20 73 69 | 6e 67 6c 65 20 69 6e 68 |pport si|ngle inh|
|000016b0| 65 72 69 74 61 6e 63 65 | 20 2d 2d 20 61 20 73 69 |eritance| -- a si|
|000016c0| 6e 67 6c 65 20 70 61 72 | 65 6e 74 20 73 63 72 69 |ngle par|ent scri|
|000016d0| 70 74 20 6f 62 6a 65 63 | 74 2e 0d 0d 54 68 65 20 |pt objec|t...The |
|000016e0| 75 73 65 20 6f 66 20 64 | 65 6c 65 67 61 74 69 6f |use of d|elegatio|
|000016f0| 6e 2d 73 74 79 6c 65 20 | 69 6e 68 65 72 69 74 61 |n-style |inherita|
|00001700| 6e 63 65 20 77 6f 72 6b | 73 20 77 65 6c 6c 20 77 |nce work|s well w|
|00001710| 69 74 68 20 6f 75 72 20 | 75 73 65 20 6f 66 20 73 |ith our |use of s|
|00001720| 63 72 69 70 74 20 6f 62 | 6a 65 63 74 73 20 61 73 |cript ob|jects as|
|00001730| 20 62 6f 74 68 20 63 6c | 61 73 73 65 73 20 61 6e | both cl|asses an|
|00001740| 64 20 69 6e 73 74 61 6e | 63 65 73 2e 20 20 53 63 |d instan|ces. Sc|
|00001750| 72 69 70 74 20 6f 62 6a | 65 63 74 73 20 62 65 69 |ript obj|ects bei|
|00001760| 6e 67 20 75 73 65 64 20 | 61 73 20 63 6c 61 73 73 |ng used |as class|
|00001770| 65 73 20 63 61 6e 20 22 | 69 6e 68 65 72 69 74 22 |es can "|inherit"|
|00001780| 20 66 72 6f 6d 20 6f 74 | 68 65 72 20 63 6c 61 73 | from ot|her clas|
|00001790| 73 65 73 20 61 6c 73 6f | 20 62 65 69 6e 67 20 75 |ses also| being u|
|000017a0| 73 65 64 20 61 73 20 63 | 6c 61 73 73 65 73 2e 20 |sed as c|lasses. |
|000017b0| 20 53 63 72 69 70 74 20 | 6f 62 6a 65 63 74 73 20 | Script |objects |
|000017c0| 62 65 69 6e 67 20 75 73 | 65 64 20 61 73 20 69 6e |being us|ed as in|
|000017d0| 73 74 61 6e 63 65 73 20 | 63 61 6e 20 22 64 65 6c |stances |can "del|
|000017e0| 65 67 61 74 65 22 20 61 | 20 6d 65 73 73 61 67 65 |egate" a| message|
|000017f0| 20 74 6f 20 61 6e 6f 74 | 68 65 72 20 73 63 72 69 | to anot|her scri|
|00001800| 70 74 20 6f 62 6a 65 63 | 74 20 62 65 69 6e 67 20 |pt objec|t being |
|00001810| 75 73 65 64 20 61 73 20 | 61 6e 20 69 6e 73 74 61 |used as |an insta|
|00001820| 6e 63 65 2e 20 20 54 68 | 65 73 65 20 61 72 65 20 |nce. Th|ese are |
|00001830| 65 73 73 65 6e 74 69 61 | 6c 6c 79 20 74 68 65 20 |essentia|lly the |
|00001840| 73 61 6d 65 20 63 6f 6e | 63 65 70 74 2e 20 20 53 |same con|cept. S|
|00001850| 63 72 69 70 74 20 6f 62 | 6a 65 63 74 73 20 73 69 |cript ob|jects si|
|00001860| 6d 70 6c 79 20 66 6f 72 | 77 61 72 64 20 6d 65 73 |mply for|ward mes|
|00001870| 73 61 67 65 73 20 6f 6e | 20 74 6f 20 74 68 65 69 |sages on| to thei|
|00001880| 72 20 22 70 61 72 65 6e | 74 22 20 77 68 65 6e 20 |r "paren|t" when |
|00001890| 74 68 65 79 20 64 6f 6e | 27 74 20 68 61 6e 64 6c |they don|'t handl|
|000018a0| 65 20 74 68 65 20 6d 65 | 73 73 61 67 65 20 74 68 |e the me|ssage th|
|000018b0| 65 6d 73 65 6c 76 65 73 | 2e 0d 0d 4c 65 74 27 73 |emselves|...Let's|
|000018c0| 20 62 65 67 69 6e 20 62 | 79 20 73 68 6f 77 69 6e | begin b|y showin|
|000018d0| 67 20 61 6e 20 65 78 61 | 6d 70 6c 65 20 6f 66 20 |g an exa|mple of |
|000018e0| 69 6e 68 65 72 69 74 61 | 6e 63 65 2e 20 20 53 75 |inherita|nce. Su|
|000018f0| 70 70 6f 73 65 20 77 65 | 20 64 65 66 69 6e 65 20 |ppose we| define |
|00001900| 61 20 53 74 61 63 6b 20 | 63 6c 61 73 73 20 74 68 |a Stack |class th|
|00001910| 61 74 20 77 65 27 6c 6c | 20 75 73 65 20 61 73 20 |at we'll| use as |
|00001920| 61 20 62 61 73 65 20 63 | 6c 61 73 73 20 74 6f 20 |a base c|lass to |
|00001930| 69 6e 68 65 72 69 74 20 | 66 72 6f 6d 3a 0d 0d 73 |inherit |from:..s|
|00001940| 63 72 69 70 74 20 53 74 | 61 63 6b 0d 09 70 72 6f |cript St|ack..pro|
|00001950| 70 65 72 74 79 20 65 6c | 65 6d 65 6e 74 73 20 3a |perty el|ements :|
|00001960| 20 7b 7d 0d 09 0d 09 6f | 6e 20 70 75 73 68 28 78 | {}....o|n push(x|
|00001970| 29 0d 09 09 73 65 74 20 | 65 6c 65 6d 65 6e 74 73 |)...set |elements|
|00001980| 20 74 6f 20 7b 78 7d 20 | 26 20 65 6c 65 6d 65 6e | to {x} |& elemen|
|00001990| 74 73 0d 09 09 72 65 74 | 75 72 6e 20 78 0d 09 65 |ts...ret|urn x..e|
|000019a0| 6e 64 20 70 75 73 68 0d | 09 0d 09 6f 6e 20 70 6f |nd push.|...on po|
|000019b0| 70 28 29 0d 09 09 73 65 | 74 20 76 61 6c 75 65 20 |p()...se|t value |
|000019c0| 74 6f 20 74 6f 70 28 29 | 0d 09 09 73 65 74 20 65 |to top()|...set e|
|000019d0| 6c 65 6d 65 6e 74 73 20 | 74 6f 20 72 65 73 74 20 |lements |to rest |
|000019e0| 6f 66 20 65 6c 65 6d 65 | 6e 74 73 0d 09 09 72 65 |of eleme|nts...re|
|000019f0| 74 75 72 6e 20 76 61 6c | 75 65 0d 09 65 6e 64 20 |turn val|ue..end |
|00001a00| 70 6f 70 0d 09 0d 09 6f | 6e 20 74 6f 70 28 29 0d |pop....o|n top().|
|00001a10| 09 09 72 65 74 75 72 6e | 20 69 74 65 6d 20 31 20 |..return| item 1 |
|00001a20| 6f 66 20 65 6c 65 6d 65 | 6e 74 73 0d 09 65 6e 64 |of eleme|nts..end|
|00001a30| 20 74 6f 70 0d 65 6e 64 | 20 73 63 72 69 70 74 0d | top.end| script.|
|00001a40| 0d 54 68 69 73 20 63 6c | 61 73 73 20 75 73 65 73 |.This cl|ass uses|
|00001a50| 20 61 20 70 72 6f 70 65 | 72 74 79 2c 20 65 6c 65 | a prope|rty, ele|
|00001a60| 6d 65 6e 74 73 2c 20 77 | 68 69 63 68 20 69 73 20 |ments, w|hich is |
|00001a70| 61 20 6c 69 73 74 20 63 | 6f 6e 74 61 69 6e 69 6e |a list c|ontainin|
|00001a80| 67 20 74 68 65 20 65 6c | 65 6d 65 6e 74 73 20 28 |g the el|ements (|
|00001a90| 77 65 20 63 6f 75 6c 64 | 20 68 61 76 65 20 75 73 |we could| have us|
|00001aa0| 65 64 20 61 20 76 65 63 | 74 6f 72 20 61 6e 64 20 |ed a vec|tor and |
|00001ab0| 61 6e 20 69 6e 64 65 78 | 20 63 6f 75 6e 74 65 72 |an index| counter|
|00001ac0| 2c 20 62 75 74 20 74 68 | 69 73 20 77 69 6c 6c 20 |, but th|is will |
|00001ad0| 64 6f 20 66 6f 72 20 6e | 6f 77 29 2e 0d 0d 4e 6f |do for n|ow)...No|
|00001ae0| 77 20 77 65 20 63 61 6e | 20 64 65 66 69 6e 65 20 |w we can| define |
|00001af0| 61 20 73 75 62 63 6c 61 | 73 73 20 62 79 20 73 69 |a subcla|ss by si|
|00001b00| 6d 70 6c 79 20 6d 65 6e | 74 69 6f 6e 69 6e 67 20 |mply men|tioning |
|00001b10| 53 74 61 63 6b 20 61 73 | 20 74 68 65 20 70 61 72 |Stack as| the par|
|00001b20| 65 6e 74 0d 70 72 6f 70 | 65 72 74 79 20 6f 66 20 |ent.prop|erty of |
|00001b30| 74 68 65 20 73 75 62 63 | 6c 61 73 73 2e 20 20 57 |the subc|lass. W|
|00001b40| 65 20 63 61 6e 20 61 6c | 73 6f 20 61 64 64 20 61 |e can al|so add a|
|00001b50| 20 6e 65 77 20 6d 65 74 | 68 6f 64 2c 20 64 75 70 | new met|hod, dup|
|00001b60| 2c 20 77 68 69 63 68 20 | 64 75 70 6c 69 63 61 74 |, which |duplicat|
|00001b70| 65 73 20 74 68 65 20 74 | 6f 70 20 6f 66 20 74 68 |es the t|op of th|
|00001b80| 65 20 73 74 61 63 6b 3a | 0d 0d 73 63 72 69 70 74 |e stack:|..script|
|00001b90| 20 53 75 70 65 72 53 74 | 61 63 6b 0d 09 0d 09 70 | SuperSt|ack....p|
|00001ba0| 72 6f 70 65 72 74 79 20 | 70 61 72 65 6e 74 20 3a |roperty |parent :|
|00001bb0| 20 53 74 61 63 6b 0d 09 | 0d 09 6f 6e 20 64 75 70 | Stack..|..on dup|
|00001bc0| 28 29 0d 09 09 70 75 73 | 68 28 74 6f 70 28 29 29 |()...pus|h(top())|
|00001bd0| 0d 09 65 6e 64 20 64 75 | 70 0d 65 6e 64 20 73 63 |..end du|p.end sc|
|00001be0| 72 69 70 74 0d 0d 48 65 | 72 65 2c 20 53 75 70 65 |ript..He|re, Supe|
|00001bf0| 72 53 74 61 63 6b 20 64 | 6f 65 73 6e 27 74 20 64 |rStack d|oesn't d|
|00001c00| 65 66 69 6e 65 20 61 20 | 70 75 73 68 20 6f 72 20 |efine a |push or |
|00001c10| 74 6f 70 20 6d 65 74 68 | 6f 64 2c 20 62 75 74 20 |top meth|od, but |
|00001c20| 69 6e 68 65 72 69 74 73 | 20 74 68 65 6d 20 66 72 |inherits| them fr|
|00001c30| 6f 6d 20 53 74 61 63 6b | 2e 20 20 57 68 65 6e 20 |om Stack|. When |
|00001c40| 69 74 20 69 73 20 73 65 | 6e 74 20 74 68 65 20 64 |it is se|nt the d|
|00001c50| 75 70 20 6d 65 73 73 61 | 67 65 2c 20 69 74 20 73 |up messa|ge, it s|
|00001c60| 65 6e 64 73 20 69 74 73 | 65 6c 66 20 74 68 65 20 |ends its|elf the |
|00001c70| 70 75 73 68 20 61 6e 64 | 20 74 6f 70 20 6d 65 73 |push and| top mes|
|00001c80| 73 61 67 65 73 20 77 68 | 69 63 68 20 65 6e 64 20 |sages wh|ich end |
|00001c90| 75 70 20 62 65 69 6e 67 | 20 68 61 6e 64 6c 65 64 |up being| handled|
|00001ca0| 20 62 79 20 53 74 61 63 | 6b 2e 0d 0d 4e 6f 77 20 | by Stac|k...Now |
|00001cb0| 6c 65 74 27 73 20 75 73 | 65 20 69 6e 73 74 61 6e |let's us|e instan|
|00001cc0| 63 65 73 20 6f 66 20 6f | 75 72 20 53 75 70 65 72 |ces of o|ur Super|
|00001cd0| 53 74 61 63 6b 20 74 6f | 20 73 65 65 20 68 6f 77 |Stack to| see how|
|00001ce0| 20 69 74 20 77 6f 72 6b | 73 3a 0d 0d 2d 2d 20 6d | it work|s:..-- m|
|00001cf0| 61 6b 65 20 74 77 6f 20 | 73 74 61 63 6b 73 2c 20 |ake two |stacks, |
|00001d00| 73 31 20 61 6e 64 20 73 | 32 3a 0d 63 6f 70 79 20 |s1 and s|2:.copy |
|00001d10| 53 75 70 65 72 53 74 61 | 63 6b 20 74 6f 20 73 31 |SuperSta|ck to s1|
|00001d20| 0d 63 6f 70 79 20 53 75 | 70 65 72 53 74 61 63 6b |.copy Su|perStack|
|00001d30| 20 74 6f 20 73 32 0d 0d | 74 65 6c 6c 20 73 31 20 | to s2..|tell s1 |
|00001d40| 74 6f 20 70 75 73 68 28 | 33 29 09 2d 2d 20 73 31 |to push(|3).-- s1|
|00001d50| 20 6e 6f 77 20 63 6f 6e | 74 61 69 6e 73 20 33 0d | now con|tains 3.|
|00001d60| 74 65 6c 6c 20 73 32 20 | 74 6f 20 70 75 73 68 28 |tell s2 |to push(|
|00001d70| 34 29 09 2d 2d 20 73 32 | 20 6e 6f 77 20 63 6f 6e |4).-- s2| now con|
|00001d80| 74 61 69 6e 73 20 34 0d | 74 65 6c 6c 20 73 31 20 |tains 4.|tell s1 |
|00001d90| 74 6f 20 64 75 70 28 29 | 09 2d 2d 20 73 31 20 6e |to dup()|.-- s1 n|
|00001da0| 6f 77 20 63 6f 6e 74 61 | 69 6e 73 20 33 2c 20 33 |ow conta|ins 3, 3|
|00001db0| 0d 0d 74 65 6c 6c 20 73 | 32 20 74 6f 20 70 6f 70 |..tell s|2 to pop|
|00001dc0| 28 29 0d 2d 2d 3e 20 34 | 0d 0d 2d 2d 20 73 31 20 |().--> 4|..-- s1 |
|00001dd0| 73 68 6f 75 6c 64 20 73 | 74 69 6c 6c 20 63 6f 6e |should s|till con|
|00001de0| 74 61 69 6e 20 74 77 6f | 20 33 73 3a 0d 74 65 6c |tain two| 3s:.tel|
|00001df0| 6c 20 73 31 0d 09 7b 70 | 6f 70 28 29 2c 20 70 6f |l s1..{p|op(), po|
|00001e00| 70 28 29 7d 0d 65 6e 64 | 20 74 65 6c 6c 0d 2d 2d |p()}.end| tell.--|
|00001e10| 3e 20 7b 33 2c 20 33 7d | 0d 0d 54 68 65 20 74 68 |> {3, 3}|..The th|
|00001e20| 69 6e 67 20 74 68 61 74 | 20 6d 61 6b 65 73 20 74 |ing that| makes t|
|00001e30| 68 69 73 20 77 6f 72 6b | 20 69 73 20 74 68 61 74 |his work| is that|
|00001e40| 20 77 68 65 6e 20 53 75 | 70 65 72 53 74 61 63 6b | when Su|perStack|
|00001e50| 20 69 73 20 63 6f 70 69 | 65 64 2c 20 69 74 73 20 | is copi|ed, its |
|00001e60| 70 61 72 65 6e 74 2c 20 | 53 74 61 63 6b 2c 20 69 |parent, |Stack, i|
|00001e70| 73 20 61 6c 73 6f 20 63 | 6f 70 69 65 64 2e 20 20 |s also c|opied. |
|00001e80| 54 68 69 73 20 67 69 76 | 65 73 20 65 61 63 68 20 |This giv|es each |
|00001e90| 6e 65 77 20 69 6e 73 74 | 61 6e 63 65 20 6e 65 77 |new inst|ance new|
|00001ea0| 20 63 6f 70 69 65 73 20 | 6f 66 20 61 6c 6c 20 74 | copies |of all t|
|00001eb0| 68 65 20 70 72 6f 70 65 | 72 74 69 65 73 2e 20 20 |he prope|rties. |
|00001ec0| 53 31 20 61 6e 64 20 73 | 32 20 65 61 63 68 20 67 |S1 and s|2 each g|
|00001ed0| 65 74 20 74 68 65 69 72 | 20 6f 77 6e 20 63 6f 70 |et their| own cop|
|00001ee0| 79 20 6f 66 20 74 68 65 | 20 65 6c 65 6d 65 6e 74 |y of the| element|
|00001ef0| 73 20 70 72 6f 70 65 72 | 74 79 2e 0d 0d 52 61 74 |s proper|ty...Rat|
|00001f00| 68 65 72 20 74 68 61 6e | 20 6a 75 73 74 20 69 6e |her than| just in|
|00001f10| 68 65 72 69 74 69 6e 67 | 20 6d 65 74 68 6f 64 73 |heriting| methods|
|00001f20| 2c 20 77 65 20 63 61 6e | 20 61 6c 73 6f 20 6f 76 |, we can| also ov|
|00001f30| 65 72 72 69 64 65 20 6d | 65 74 68 6f 64 73 20 2d |erride m|ethods -|
|00001f40| 2d 20 72 65 70 6c 61 63 | 65 20 74 68 65 6d 20 77 |- replac|e them w|
|00001f50| 69 74 68 20 6d 65 74 68 | 6f 64 73 20 74 68 61 74 |ith meth|ods that|
|00001f60| 20 64 6f 20 73 6f 6d 65 | 74 68 69 6e 67 20 63 6f | do some|thing co|
|00001f70| 6d 70 6c 65 74 65 6c 79 | 20 64 69 66 66 65 72 65 |mpletely| differe|
|00001f80| 6e 74 2e 20 20 57 65 20 | 63 61 6e 20 6d 61 6b 65 |nt. We |can make|
|00001f90| 20 6f 75 72 20 53 75 70 | 65 72 53 74 61 63 6b 20 | our Sup|erStack |
|00001fa0| 6e 6f 74 20 61 6c 6c 6f | 77 20 74 68 65 20 70 6f |not allo|w the po|
|00001fb0| 70 20 6d 65 74 68 6f 64 | 20 62 79 20 67 69 76 69 |p method| by givi|
|00001fc0| 6e 67 20 69 74 20 61 20 | 6e 65 77 20 70 6f 70 20 |ng it a |new pop |
|00001fd0| 6d 65 74 68 6f 64 20 74 | 68 61 74 20 73 69 67 6e |method t|hat sign|
|00001fe0| 61 6c 73 20 61 6e 20 65 | 72 72 6f 72 3a 0d 0d 73 |als an e|rror:..s|
|00001ff0| 63 72 69 70 74 20 53 75 | 70 65 72 53 74 61 63 6b |cript Su|perStack|
|00002000| 0d 09 0d 09 70 72 6f 70 | 65 72 74 79 20 70 61 72 |....prop|erty par|
|00002010| 65 6e 74 20 3a 20 53 74 | 61 63 6b 0d 09 0d 09 6f |ent : St|ack....o|
|00002020| 6e 20 64 75 70 28 29 0d | 09 09 70 75 73 68 28 74 |n dup().|..push(t|
|00002030| 6f 70 28 29 29 0d 09 65 | 6e 64 20 64 75 70 0d 09 |op())..e|nd dup..|
|00002040| 0d 09 6f 6e 20 70 6f 70 | 28 29 0d 09 09 65 72 72 |..on pop|()...err|
|00002050| 6f 72 20 22 53 75 70 65 | 72 53 74 61 63 6b 20 64 |or "Supe|rStack d|
|00002060| 6f 65 73 6e 27 74 20 61 | 6c 6c 6f 77 20 70 6f 70 |oesn't a|llow pop|
|00002070| 22 0d 09 65 6e 64 20 70 | 6f 70 0d 65 6e 64 20 73 |"..end p|op.end s|
|00002080| 63 72 69 70 74 0d 0d 4e | 6f 77 20 77 65 20 63 61 |cript..N|ow we ca|
|00002090| 6e 20 70 65 72 66 6f 72 | 6d 20 70 75 73 68 2c 20 |n perfor|m push, |
|000020a0| 74 6f 70 2c 20 61 6e 64 | 20 64 75 70 20 6f 6e 20 |top, and| dup on |
|000020b0| 69 6e 73 74 61 6e 63 65 | 73 20 6f 66 20 53 75 70 |instance|s of Sup|
|000020c0| 65 72 53 74 61 63 6b 73 | 2c 20 62 75 74 20 6e 6f |erStacks|, but no|
|000020d0| 74 20 70 6f 70 3a 0d 0d | 63 6f 70 79 20 53 75 70 |t pop:..|copy Sup|
|000020e0| 65 72 53 74 61 63 6b 20 | 74 6f 20 73 33 0d 0d 74 |erStack |to s3..t|
|000020f0| 65 6c 6c 20 73 33 20 74 | 6f 20 70 75 73 68 28 36 |ell s3 t|o push(6|
|00002100| 29 0d 74 65 6c 6c 20 73 | 33 20 74 6f 20 64 75 70 |).tell s|3 to dup|
|00002110| 28 29 0d 74 65 6c 6c 20 | 73 33 20 74 6f 20 70 6f |().tell |s3 to po|
|00002120| 70 28 29 0d 2d 2d 3e 20 | 45 72 72 6f 72 3a 20 53 |p().--> |Error: S|
|00002130| 75 70 65 72 53 74 61 63 | 6b 20 64 6f 65 73 6e 27 |uperStac|k doesn'|
|00002140| 74 20 61 6c 6c 6f 77 20 | 70 6f 70 0d 0d 45 76 65 |t allow |pop..Eve|
|00002150| 6e 20 69 66 20 74 68 65 | 20 70 61 72 65 6e 74 20 |n if the| parent |
|00002160| 73 63 72 69 70 74 20 73 | 65 6e 64 73 20 61 20 6d |script s|ends a m|
|00002170| 65 73 73 61 67 65 20 74 | 6f 20 69 74 73 65 6c 66 |essage t|o itself|
|00002180| 2c 20 74 68 65 20 6d 65 | 73 73 61 67 65 20 69 73 |, the me|ssage is|
|00002190| 20 72 65 63 65 69 76 65 | 64 20 62 79 20 74 68 65 | receive|d by the|
|000021a0| 20 63 68 69 6c 64 20 73 | 63 72 69 70 74 2e 20 20 | child s|cript. |
|000021b0| 57 65 20 63 61 6e 20 69 | 6c 6c 75 73 74 72 61 74 |We can i|llustrat|
|000021c0| 65 20 74 68 69 73 20 62 | 79 20 6f 76 65 72 72 69 |e this b|y overri|
|000021d0| 64 69 6e 67 20 74 68 65 | 20 74 6f 70 20 6d 65 74 |ding the| top met|
|000021e0| 68 6f 64 20 72 61 74 68 | 65 72 20 74 68 61 6e 20 |hod rath|er than |
|000021f0| 70 6f 70 3a 0d 0d 20 73 | 63 72 69 70 74 20 53 75 |pop:.. s|cript Su|
|00002200| 70 65 72 53 74 61 63 6b | 0d 09 0d 09 70 72 6f 70 |perStack|....prop|
|00002210| 65 72 74 79 20 70 61 72 | 65 6e 74 20 3a 20 53 74 |erty par|ent : St|
|00002220| 61 63 6b 0d 09 0d 09 6f | 6e 20 64 75 70 28 29 0d |ack....o|n dup().|
|00002230| 09 09 70 75 73 68 28 74 | 6f 70 28 29 29 0d 09 65 |..push(t|op())..e|
|00002240| 6e 64 20 64 75 70 0d 09 | 0d 09 6f 6e 20 74 6f 70 |nd dup..|..on top|
|00002250| 28 29 0d 09 09 65 72 72 | 6f 72 20 22 53 75 70 65 |()...err|or "Supe|
|00002260| 72 53 74 61 63 6b 20 64 | 6f 65 73 6e 27 74 20 61 |rStack d|oesn't a|
|00002270| 6c 6c 6f 77 20 74 6f 70 | 22 0d 09 65 6e 64 20 74 |llow top|"..end t|
|00002280| 6f 70 0d 65 6e 64 20 73 | 63 72 69 70 74 0d 0d 4e |op.end s|cript..N|
|00002290| 6f 77 20 69 66 20 77 65 | 20 73 65 6e 64 20 61 20 |ow if we| send a |
|000022a0| 53 75 70 65 72 53 74 61 | 63 6b 20 69 6e 73 74 61 |SuperSta|ck insta|
|000022b0| 6e 63 65 20 61 20 70 6f | 70 20 6d 65 73 73 61 67 |nce a po|p messag|
|000022c0| 65 2c 20 69 74 20 77 69 | 6c 6c 20 69 6e 76 6f 6b |e, it wi|ll invok|
|000022d0| 65 20 53 74 61 63 6b 27 | 73 20 68 61 6e 64 6c 65 |e Stack'|s handle|
|000022e0| 72 20 66 6f 72 20 69 74 | 2e 20 20 54 68 61 74 20 |r for it|. That |
|000022f0| 68 61 6e 64 6c 65 72 20 | 73 65 6e 64 73 20 74 68 |handler |sends th|
|00002300| 65 20 74 6f 70 20 6d 65 | 73 73 61 67 65 20 74 6f |e top me|ssage to|
|00002310| 20 73 65 6c 66 20 77 68 | 69 63 68 20 65 6e 64 73 | self wh|ich ends|
|00002320| 20 75 70 20 69 6e 20 53 | 75 70 65 72 53 74 61 63 | up in S|uperStac|
|00002330| 6b 27 73 20 74 6f 70 20 | 6d 65 74 68 6f 64 20 28 |k's top |method (|
|00002340| 69 6e 20 74 68 69 73 20 | 63 61 73 65 20 73 69 6d |in this |case sim|
|00002350| 70 6c 79 20 73 69 67 6e | 61 6c 69 6e 67 20 61 6e |ply sign|aling an|
|00002360| 20 65 72 72 6f 72 29 3a | 0d 0d 63 6f 70 79 20 53 | error):|..copy S|
|00002370| 75 70 65 72 53 74 61 63 | 6b 20 74 6f 20 73 34 0d |uperStac|k to s4.|
|00002380| 0d 74 65 6c 6c 20 73 34 | 20 74 6f 20 70 75 73 68 |.tell s4| to push|
|00002390| 28 36 29 0d 74 65 6c 6c | 20 73 34 20 74 6f 20 70 |(6).tell| s4 to p|
|000023a0| 6f 70 28 29 0d 2d 2d 3e | 20 45 72 72 6f 72 3a 20 |op().-->| Error: |
|000023b0| 53 75 70 65 72 53 74 61 | 63 6b 20 64 6f 65 73 6e |SuperSta|ck doesn|
|000023c0| 27 74 20 61 6c 6c 6f 77 | 20 74 6f 70 0d 0d a5 20 |'t allow| top... |
|000023d0| 49 6e 68 65 72 69 74 61 | 6e 63 65 20 61 6e 64 20 |Inherita|nce and |
|000023e0| 74 68 65 20 43 6f 6e 74 | 69 6e 75 65 20 63 6f 6d |the Cont|inue com|
|000023f0| 6d 61 6e 64 3a 20 53 6f | 6d 65 74 69 6d 65 73 20 |mand: So|metimes |
|00002400| 77 68 65 6e 20 64 6f 69 | 6e 67 20 4f 4f 50 20 69 |when doi|ng OOP i|
|00002410| 74 20 69 73 20 6e 65 63 | 65 73 73 61 72 79 20 74 |t is nec|essary t|
|00002420| 6f 20 6e 6f 74 20 6a 75 | 73 74 20 69 6e 68 65 72 |o not ju|st inher|
|00002430| 69 74 20 6f 72 20 6f 76 | 65 72 72 69 64 65 20 6d |it or ov|erride m|
|00002440| 65 74 68 6f 64 73 2c 20 | 62 75 74 20 74 6f 20 61 |ethods, |but to a|
|00002450| 75 67 6d 65 6e 74 20 74 | 68 65 69 72 20 66 75 6e |ugment t|heir fun|
|00002460| 63 74 69 6f 6e 61 6c 69 | 74 79 2e 20 20 54 68 69 |ctionali|ty. Thi|
|00002470| 73 20 63 61 6e 20 62 65 | 20 64 6f 6e 65 20 62 79 |s can be| done by|
|00002480| 20 75 73 69 6e 67 20 74 | 68 65 20 22 63 6f 6e 74 | using t|he "cont|
|00002490| 69 6e 75 65 22 20 73 74 | 61 74 65 6d 65 6e 74 2e |inue" st|atement.|
|000024a0| 0d 0d 4c 65 74 27 73 20 | 77 72 69 74 65 20 61 20 |..Let's |write a |
|000024b0| 43 6f 75 6e 74 69 6e 67 | 53 74 61 63 6b 20 63 6c |Counting|Stack cl|
|000024c0| 61 73 73 20 77 68 69 63 | 68 20 61 75 67 6d 65 6e |ass whic|h augmen|
|000024d0| 74 73 20 74 68 65 20 66 | 75 6e 63 74 69 6f 6e 61 |ts the f|unctiona|
|000024e0| 6c 69 74 79 20 6f 66 20 | 70 75 73 68 20 61 6e 64 |lity of |push and|
|000024f0| 20 70 6f 70 20 74 6f 20 | 6b 65 65 70 20 61 20 63 | pop to |keep a c|
|00002500| 6f 75 6e 74 20 6f 66 20 | 74 68 65 20 6e 75 6d 62 |ount of |the numb|
|00002510| 65 72 20 6f 66 20 65 6c | 65 6d 65 6e 74 73 20 63 |er of el|ements c|
|00002520| 75 72 72 65 6e 74 6c 79 | 20 6f 6e 20 74 68 65 20 |urrently| on the |
|00002530| 73 74 61 63 6b 3a 0d 0d | 73 63 72 69 70 74 20 43 |stack:..|script C|
|00002540| 6f 75 6e 74 69 6e 67 53 | 74 61 63 6b 0d 09 0d 09 |ountingS|tack....|
|00002550| 70 72 6f 70 65 72 74 79 | 20 70 61 72 65 6e 74 20 |property| parent |
|00002560| 3a 20 53 74 61 63 6b 0d | 09 0d 09 70 72 6f 70 65 |: Stack.|...prope|
|00002570| 72 74 79 20 6e 75 6d 62 | 65 72 4f 66 45 6c 65 6d |rty numb|erOfElem|
|00002580| 65 6e 74 73 20 3a 20 30 | 0d 09 0d 09 6f 6e 20 70 |ents : 0|....on p|
|00002590| 75 73 68 28 78 29 0d 09 | 09 73 65 74 20 6e 75 6d |ush(x)..|.set num|
|000025a0| 62 65 72 4f 66 45 6c 65 | 6d 65 6e 74 73 20 74 6f |berOfEle|ments to|
|000025b0| 20 6e 75 6d 62 65 72 4f | 66 45 6c 65 6d 65 6e 74 | numberO|fElement|
|000025c0| 73 20 2b 20 31 0d 09 09 | 63 6f 6e 74 69 6e 75 65 |s + 1...|continue|
|000025d0| 20 70 75 73 68 28 78 29 | 0d 09 65 6e 64 20 70 75 | push(x)|..end pu|
|000025e0| 73 68 0d 09 0d 09 6f 6e | 20 70 6f 70 28 29 0d 09 |sh....on| pop()..|
|000025f0| 09 73 65 74 20 6e 75 6d | 62 65 72 4f 66 45 6c 65 |.set num|berOfEle|
|00002600| 6d 65 6e 74 73 20 74 6f | 20 6e 75 6d 62 65 72 4f |ments to| numberO|
|00002610| 66 45 6c 65 6d 65 6e 74 | 73 20 2d 20 31 0d 09 09 |fElement|s - 1...|
|00002620| 63 6f 6e 74 69 6e 75 65 | 20 70 6f 70 28 29 0d 09 |continue| pop()..|
|00002630| 65 6e 64 20 70 6f 70 0d | 65 6e 64 20 73 63 72 69 |end pop.|end scri|
|00002640| 70 74 0d 0d 48 65 72 65 | 2c 20 63 6f 6e 74 69 6e |pt..Here|, contin|
|00002650| 75 65 20 63 61 75 73 65 | 73 20 74 68 65 20 6d 65 |ue cause|s the me|
|00002660| 74 68 6f 64 20 74 6f 20 | 62 65 20 68 61 6e 64 65 |thod to |be hande|
|00002670| 64 20 6f 66 66 20 74 6f | 20 74 68 65 20 70 61 72 |d off to| the par|
|00002680| 65 6e 74 2c 20 69 6e 20 | 74 68 69 73 20 63 61 73 |ent, in |this cas|
|00002690| 65 20 74 68 65 20 53 74 | 61 63 6b 20 63 6c 61 73 |e the St|ack clas|
|000026a0| 73 2e 20 20 48 65 72 65 | 27 73 20 61 6e 20 65 78 |s. Here|'s an ex|
|000026b0| 61 6d 70 6c 65 20 6f 66 | 20 69 74 20 69 6e 20 61 |ample of| it in a|
|000026c0| 63 74 69 6f 6e 3a 0d 0d | 63 6f 70 79 20 43 6f 75 |ction:..|copy Cou|
|000026d0| 6e 74 69 6e 67 53 74 61 | 63 6b 20 74 6f 20 63 73 |ntingSta|ck to cs|
|000026e0| 31 0d 0d 74 65 6c 6c 20 | 63 73 31 0d 09 70 75 73 |1..tell |cs1..pus|
|000026f0| 68 28 33 33 29 0d 09 70 | 75 73 68 28 34 34 29 0d |h(33)..p|ush(44).|
|00002700| 09 70 75 73 68 28 35 35 | 29 0d 65 6e 64 20 74 65 |.push(55|).end te|
|00002710| 6c 6c 0d 0d 6e 75 6d 62 | 65 72 4f 66 45 6c 65 6d |ll..numb|erOfElem|
|00002720| 65 6e 74 73 20 6f 66 20 | 63 73 31 0d 2d 2d 3e 20 |ents of |cs1.--> |
|00002730| 33 0d 0d 74 65 6c 6c 20 | 63 73 31 0d 09 70 6f 70 |3..tell |cs1..pop|
|00002740| 28 29 0d 09 67 65 74 20 | 69 74 73 20 6e 75 6d 62 |()..get |its numb|
|00002750| 65 72 4f 66 45 6c 65 6d | 65 6e 74 73 0d 65 6e 64 |erOfElem|ents.end|
|00002760| 20 74 65 6c 6c 0d 2d 2d | 3e 20 32 0d 0d 57 68 65 | tell.--|> 2..Whe|
|00002770| 6e 20 63 6f 6e 74 69 6e | 75 65 20 69 73 20 63 61 |n contin|ue is ca|
|00002780| 6c 6c 65 64 2c 20 74 68 | 65 20 61 72 67 75 6d 65 |lled, th|e argume|
|00002790| 6e 74 73 20 70 61 73 73 | 65 64 20 74 6f 20 74 68 |nts pass|ed to th|
|000027a0| 65 20 70 61 72 65 6e 74 | 20 6d 61 79 20 62 65 20 |e parent| may be |
|000027b0| 63 68 61 6e 67 65 64 2e | 20 53 69 6d 69 6c 61 72 |changed.| Similar|
|000027c0| 6c 79 2c 20 61 6e 79 20 | 72 65 73 75 6c 74 20 72 |ly, any |result r|
|000027d0| 65 74 75 72 6e 65 64 20 | 66 72 6f 6d 20 74 68 65 |eturned |from the|
|000027e0| 20 70 61 72 65 6e 74 27 | 73 20 6d 65 74 68 6f 64 | parent'|s method|
|000027f0| 20 77 69 6c 6c 20 62 65 | 20 72 65 74 75 72 6e 65 | will be| returne|
|00002800| 64 20 66 72 6f 6d 20 74 | 68 65 20 63 6f 6e 74 69 |d from t|he conti|
|00002810| 6e 75 65 20 73 74 61 74 | 65 6d 65 6e 74 2e 20 20 |nue stat|ement. |
|00002820| 4a 75 73 74 20 74 6f 20 | 64 65 6d 6f 6e 73 74 72 |Just to |demonstr|
|00002830| 61 74 65 20 74 68 69 73 | 20 63 61 70 61 62 69 6c |ate this| capabil|
|00002840| 69 74 79 2c 20 77 65 20 | 63 61 6e 20 6d 61 6b 65 |ity, we |can make|
|00002850| 20 61 20 73 75 62 63 6c | 61 73 73 20 6f 66 20 53 | a subcl|ass of S|
|00002860| 74 61 63 6b 20 74 68 61 | 74 20 28 61 73 73 75 6d |tack tha|t (assum|
|00002870| 69 6e 67 20 74 68 65 20 | 69 74 65 6d 73 20 70 75 |ing the |items pu|
|00002880| 73 68 65 64 20 61 72 65 | 20 69 6e 74 65 67 65 72 |shed are| integer|
|00002890| 73 29 20 73 74 6f 72 65 | 73 20 74 68 65 6d 20 69 |s) store|s them i|
|000028a0| 6e 74 65 72 6e 61 6c 6c | 79 20 76 61 6c 75 65 73 |nternall|y values|
|000028b0| 20 61 73 20 6d 75 6c 74 | 69 70 6c 69 65 64 20 62 | as mult|iplied b|
|000028c0| 79 20 31 30 2e 20 20 54 | 68 65 6e 20 77 68 65 6e |y 10. T|hen when|
|000028d0| 20 70 6f 70 70 65 64 20 | 6f 66 66 20 74 68 65 20 | popped |off the |
|000028e0| 73 74 61 63 6b 2c 20 69 | 74 20 64 69 76 69 64 65 |stack, i|t divide|
|000028f0| 73 20 74 68 65 6d 20 62 | 61 63 6b 20 64 6f 77 6e |s them b|ack down|
|00002900| 20 74 6f 20 74 68 65 20 | 6f 72 69 67 69 6e 61 6c | to the |original|
|00002910| 20 76 61 6c 75 65 3a 0d | 0d 73 63 72 69 70 74 20 | value:.|.script |
|00002920| 48 61 72 64 57 6f 72 6b | 69 6e 67 53 74 61 63 6b |HardWork|ingStack|
|00002930| 0d 09 0d 09 70 72 6f 70 | 65 72 74 79 20 70 61 72 |....prop|erty par|
|00002940| 65 6e 74 20 3a 20 53 74 | 61 63 6b 0d 09 0d 09 6f |ent : St|ack....o|
|00002950| 6e 20 70 75 73 68 28 78 | 29 0d 09 09 63 6f 6e 74 |n push(x|)...cont|
|00002960| 69 6e 75 65 20 70 75 73 | 68 28 78 20 2a 20 31 30 |inue pus|h(x * 10|
|00002970| 29 0d 09 65 6e 64 20 70 | 75 73 68 0d 09 0d 09 6f |)..end p|ush....o|
|00002980| 6e 20 70 6f 70 28 29 0d | 09 09 63 6f 6e 74 69 6e |n pop().|..contin|
|00002990| 75 65 20 70 6f 70 28 29 | 0d 09 09 72 65 74 75 72 |ue pop()|...retur|
|000029a0| 6e 20 72 65 73 75 6c 74 | 20 64 69 76 20 31 30 0d |n result| div 10.|
|000029b0| 09 65 6e 64 20 70 6f 70 | 0d 65 6e 64 20 73 63 72 |.end pop|.end scr|
|000029c0| 69 70 74 0d 0d 0d 63 6f | 70 79 20 48 61 72 64 57 |ipt...co|py HardW|
|000029d0| 6f 72 6b 69 6e 67 53 74 | 61 63 6b 20 74 6f 20 68 |orkingSt|ack to h|
|000029e0| 77 73 0d 0d 74 65 6c 6c | 20 68 77 73 0d 09 70 75 |ws..tell| hws..pu|
|000029f0| 73 68 28 33 29 0d 09 70 | 75 73 68 28 34 29 0d 09 |sh(3)..p|ush(4)..|
|00002a00| 72 65 74 75 72 6e 20 7b | 70 6f 70 28 29 2c 20 70 |return {|pop(), p|
|00002a10| 6f 70 28 29 7d 0d 65 6e | 64 20 74 65 6c 6c 0d 2d |op()}.en|d tell.-|
|00002a20| 2d 3e 20 7b 34 2c 20 33 | 7d 0d 0d 0d 00 00 07 b8 |-> {4, 3|}.......|
|00002a30| 01 e7 00 09 00 87 29 f0 | 00 87 29 f4 00 c3 04 00 |......).|..).....|
|00002a40| 00 87 29 e8 00 00 00 01 | 00 25 00 02 00 27 00 00 |..).....|.%...'..|
|00002a50| 00 97 00 03 00 b8 00 00 | 01 bf 00 05 01 c5 00 06 |........|........|
|00002a60| 01 cb 00 05 01 cd 00 06 | 01 e2 00 05 01 e5 00 06 |........|........|
|00002a70| 01 fb 00 05 01 fd 00 06 | 02 04 00 07 02 22 00 06 |........|....."..|
|00002a80| 02 23 00 07 02 40 00 06 | 02 42 00 05 02 45 00 06 |.#...@..|.B...E..|
|00002a90| 02 56 00 07 02 68 00 06 | 02 69 00 05 02 6c 00 06 |.V...h..|.i...l..|
|00002aa0| 02 6d 00 05 02 73 00 06 | 02 74 00 00 02 7f 00 05 |.m...s..|.t......|
|00002ab0| 02 85 00 06 02 8b 00 05 | 02 8d 00 06 02 a2 00 05 |........|........|
|00002ac0| 02 a5 00 06 02 c9 00 05 | 02 cb 00 06 02 d2 00 07 |........|........|
|00002ad0| 02 e0 00 06 02 e1 00 07 | 02 ff 00 06 03 01 00 05 |........|........|
|00002ae0| 03 04 00 06 03 15 00 07 | 03 27 00 06 03 28 00 05 |........|.'...(..|
|00002af0| 03 2b 00 06 03 2c 00 05 | 03 32 00 06 03 33 00 00 |.+...,..|.2...3..|
|00002b00| 03 36 00 03 03 4a 00 00 | 04 7e 00 06 04 a1 00 05 |.6...J..|.~......|
|00002b10| 04 a3 00 06 04 ad 00 07 | 04 d8 00 06 04 da 00 05 |........|........|
|00002b20| 04 dd 00 06 05 01 00 05 | 05 03 00 06 05 2e 00 05 |........|........|
|00002b30| 05 30 00 06 05 3a 00 07 | 05 74 00 06 05 75 00 00 |.0...:..|.t...u..|
|00002b40| 05 a2 00 05 05 a5 00 06 | 05 c9 00 05 05 cb 00 06 |........|........|
|00002b50| 05 d2 00 05 05 d5 00 06 | 05 d6 00 05 05 da 00 06 |........|........|
|00002b60| 05 e5 00 05 05 e7 00 06 | 06 14 00 07 06 25 00 06 |........|.....%..|
|00002b70| 06 26 00 00 07 2b 00 05 | 07 2e 00 06 07 47 00 05 |.&...+..|.....G..|
|00002b80| 07 49 00 06 07 6d 00 05 | 07 70 00 06 07 72 00 05 |.I...m..|.p...r..|
|00002b90| 07 75 00 06 07 99 00 05 | 07 9b 00 06 07 a6 00 07 |.u......|........|
|00002ba0| 07 ba 00 06 07 bd 00 07 | 07 e7 00 06 07 e8 00 05 |........|........|
|00002bb0| 07 eb 00 06 08 0f 00 05 | 08 11 00 06 08 2a 00 05 |........|.....*..|
|00002bc0| 08 2c 00 06 08 2d 00 05 | 08 32 00 06 08 5e 00 07 |.,...-..|.2...^..|
|00002bd0| 08 98 00 06 08 99 00 05 | 08 9c 00 06 08 c0 00 05 |........|........|
|00002be0| 08 c2 00 06 08 de 00 07 | 08 f6 00 06 08 f7 00 05 |........|........|
|00002bf0| 08 fc 00 06 09 25 00 05 | 09 28 00 06 09 29 00 05 |.....%..|.(...)..|
|00002c00| 09 2c 00 06 09 2d 00 00 | 09 30 00 03 09 3c 00 00 |.,...-..|.0...<..|
|00002c10| 09 b7 00 05 09 c3 00 06 | 09 c4 00 05 09 c6 00 06 |........|........|
|00002c20| 09 d0 00 05 09 d6 00 06 | 09 d7 00 05 09 d8 00 06 |........|........|
|00002c30| 09 e2 00 05 09 e5 00 06 | 09 e6 00 05 09 ed 00 00 |........|........|
|00002c40| 0b 59 00 05 0b 65 00 06 | 0b 66 00 05 0b 68 00 06 |.Y...e..|.f...h..|
|00002c50| 0b 6b 00 05 0b 71 00 06 | 0b 73 00 05 0b 77 00 06 |.k...q..|.s...w..|
|00002c60| 0b 9d 00 05 0b 9f 00 06 | 0b a0 00 05 0b a3 00 06 |........|........|
|00002c70| 0b ab 00 05 0b ad 00 06 | 0b ae 00 05 0b b3 00 06 |........|........|
|00002c80| 0b bd 00 05 0b c0 00 06 | 0b c1 00 05 0b c8 00 06 |........|........|
|00002c90| 0b ca 00 00 0c 5c 00 03 | 0c 6c 00 00 0d 7f 00 05 |.....\..|.l......|
|00002ca0| 0d 8f 00 06 0d a4 00 05 | 0d a7 00 06 0d a8 00 05 |........|........|
|00002cb0| 0d b3 00 00 10 c5 00 05 | 10 c9 00 06 10 e2 00 05 |........|........|
|00002cc0| 10 e5 00 06 10 f0 00 05 | 10 f2 00 06 11 11 00 05 |........|........|
|00002cd0| 11 21 00 06 11 33 00 05 | 11 36 00 06 11 37 00 05 |.!...3..|.6...7..|
|00002ce0| 11 42 00 06 11 43 00 05 | 11 46 00 06 11 47 00 05 |.B...C..|.F...G..|
|00002cf0| 11 4b 00 00 11 4f 00 03 | 11 6e 00 00 12 a0 00 05 |.K...O..|.n......|
|00002d00| 12 a4 00 06 12 a5 00 05 | 12 a8 00 06 12 ac 00 05 |........|........|
|00002d10| 12 ae 00 06 12 b8 00 05 | 12 bb 00 06 12 bc 00 05 |........|........|
|00002d20| 12 be 00 06 12 bf 00 05 | 12 c4 00 06 12 ee 00 05 |........|........|
|00002d30| 12 f0 00 06 12 fb 00 05 | 12 fe 00 06 13 0b 00 05 |........|........|
|00002d40| 13 0f 00 06 13 14 00 07 | 13 45 00 06 13 46 00 07 |........|.E...F..|
|00002d50| 13 54 00 06 13 57 00 05 | 13 5d 00 06 13 60 00 05 |.T...W..|.]...`..|
|00002d60| 13 62 00 06 13 6b 00 05 | 13 6f 00 06 13 72 00 05 |.b...k..|.o...r..|
|00002d70| 13 77 00 06 13 a1 00 05 | 13 a4 00 06 13 a5 00 05 |.w......|........|
|00002d80| 13 a7 00 06 13 a8 00 05 | 13 ab 00 06 13 ac 00 05 |........|........|
|00002d90| 13 af 00 06 13 b1 00 00 | 13 b4 00 03 13 cd 00 00 |........|........|
|00002da0| 19 39 00 05 19 3f 00 06 | 19 47 00 05 19 4f 00 06 |.9...?..|.G...O..|
|00002db0| 19 61 00 05 19 63 00 06 | 19 6e 00 05 19 71 00 06 |.a...c..|.n...q..|
|00002dc0| 19 7b 00 05 19 7d 00 06 | 19 8f 00 05 19 95 00 06 |.{...}..|........|
|00002dd0| 19 99 00 05 19 9c 00 06 | 19 a5 00 05 19 a7 00 06 |........|........|
|00002de0| 19 b0 00 05 19 b3 00 06 | 19 ba 00 05 19 bc 00 06 |........|........|
|00002df0| 19 c5 00 05 19 c8 00 06 | 19 d2 00 05 19 d4 00 06 |........|........|
|00002e00| 19 da 00 05 19 dc 00 06 | 19 e8 00 05 19 ee 00 06 |........|........|
|00002e10| 19 f6 00 05 19 f9 00 06 | 1a 01 00 05 1a 03 00 06 |........|........|
|00002e20| 1a 0c 00 05 1a 12 00 06 | 1a 1a 00 05 1a 1c 00 06 |........|........|
|00002e30| 1a 27 00 05 1a 2a 00 06 | 1a 2f 00 05 1a 32 00 06 |.'...*..|./...2..|
|00002e40| 1a 33 00 05 1a 39 00 06 | 1a 3a 00 00 1b 84 00 05 |.3...9..|.:......|
|00002e50| 1b 8a 00 06 1b 99 00 05 | 1b a1 00 06 1b b4 00 05 |........|........|
|00002e60| 1b b6 00 06 1b cc 00 05 | 1b cf 00 06 1b d4 00 05 |........|........|
|00002e70| 1b d7 00 06 1b d8 00 05 | 1b de 00 06 1b df 00 00 |........|........|
|00002e80| 1c e6 00 06 1c e8 00 07 | 1d 04 00 00 1d 05 00 05 |........|........|
|00002e90| 1d 09 00 06 1d 15 00 05 | 1d 17 00 06 1d 1b 00 05 |........|........|
|00002ea0| 1d 1f 00 06 1d 2b 00 05 | 1d 2d 00 06 1d 32 00 05 |.....+..|.-...2..|
|00002eb0| 1d 36 00 06 1d 3a 00 05 | 1d 3c 00 06 1d 47 00 07 |.6...:..|.<...G..|
|00002ec0| 1d 59 00 06 1d 5a 00 05 | 1d 5e 00 06 1d 62 00 05 |.Y...Z..|.^...b..|
|00002ed0| 1d 64 00 06 1d 6f 00 07 | 1d 81 00 06 1d 82 00 05 |.d...o..|........|
|00002ee0| 1d 86 00 06 1d 8a 00 05 | 1d 8c 00 06 1d 95 00 07 |........|........|
|00002ef0| 1d aa 00 06 1d ac 00 05 | 1d b0 00 06 1d b4 00 05 |........|........|
|00002f00| 1d b6 00 06 1d bf 00 07 | 1d c2 00 06 1d c6 00 07 |........|........|
|00002f10| 1d e7 00 05 1d eb 00 06 | 1d ff 00 05 1e 02 00 06 |........|........|
|00002f20| 1e 03 00 05 1e 07 00 06 | 1e 0a 00 07 1e 12 00 06 |........|........|
|00002f30| 1e 13 00 00 1f e9 00 05 | 1f ef 00 06 1f fe 00 05 |........|........|
|00002f40| 20 06 00 06 20 19 00 05 | 20 1b 00 06 20 31 00 05 | ... ...| ... 1..|
|00002f50| 20 34 00 06 20 3c 00 05 | 20 3e 00 06 20 47 00 05 | 4.. <..| >.. G..|
|00002f60| 20 4c 00 06 20 6d 00 05 | 20 70 00 06 20 75 00 05 | L.. m..| p.. u..|
|00002f70| 20 78 00 06 20 79 00 05 | 20 7f 00 06 20 80 00 00 | x.. y..| ... ...|
|00002f80| 20 d2 00 05 20 d6 00 06 | 20 e2 00 05 20 e4 00 06 | ... ...| ... ...|
|00002f90| 20 e9 00 05 20 ed 00 06 | 20 f1 00 05 20 f3 00 06 | ... ...| ... ...|
|00002fa0| 20 fc 00 05 21 00 00 06 | 21 04 00 05 21 06 00 06 | ...!...|!...!...|
|00002fb0| 21 0d 00 05 21 11 00 06 | 21 15 00 05 21 17 00 06 |!...!...|!...!...|
|00002fc0| 21 20 00 07 21 45 00 06 | 21 46 00 00 21 f1 00 05 |! ..!E..|!F..!...|
|00002fd0| 21 f7 00 06 22 06 00 05 | 22 0e 00 06 22 21 00 05 |!..."...|"..."!..|
|00002fe0| 22 23 00 06 22 39 00 05 | 22 3c 00 06 22 44 00 05 |"#.."9..|"<.."D..|
|00002ff0| 22 46 00 06 22 4f 00 05 | 22 54 00 06 22 75 00 05 |"F.."O..|"T.."u..|
|00003000| 22 78 00 06 22 7d 00 05 | 22 80 00 06 22 81 00 05 |"x.."}..|"..."...|
|00003010| 22 87 00 06 22 88 00 00 | 23 64 00 05 23 68 00 06 |"..."...|#d..#h..|
|00003020| 23 74 00 05 23 76 00 06 | 23 7b 00 05 23 7f 00 06 |#t..#v..|#{..#...|
|00003030| 23 83 00 05 23 85 00 06 | 23 8e 00 05 23 92 00 06 |#...#...|#...#...|
|00003040| 23 96 00 05 23 98 00 06 | 23 a1 00 07 23 c6 00 06 |#...#...|#...#...|
|00003050| 23 c8 00 00 23 ca 00 03 | 23 ee 00 00 25 32 00 05 |#...#...|#...%2..|
|00003060| 25 38 00 06 25 4a 00 05 | 25 52 00 06 25 65 00 05 |%8..%J..|%R..%e..|
|00003070| 25 6d 00 06 25 86 00 05 | 25 88 00 06 25 93 00 05 |%m..%...|%...%...|
|00003080| 25 96 00 06 25 a8 00 05 | 25 aa 00 06 25 c2 00 05 |%...%...|%...%...|
|00003090| 25 ca 00 06 25 d4 00 05 | 25 d7 00 06 25 e0 00 05 |%...%...|%...%...|
|000030a0| 25 e2 00 06 25 eb 00 05 | 25 ee 00 06 26 00 00 05 |%...%...|%...&...|
|000030b0| 26 02 00 06 26 1a 00 05 | 26 22 00 06 26 2a 00 05 |&...&...|&"..&*..|
|000030c0| 26 2d 00 06 26 32 00 05 | 26 35 00 06 26 36 00 05 |&-..&2..|&5..&6..|
|000030d0| 26 3c 00 06 26 3d 00 00 | 26 c2 00 05 26 c6 00 06 |&<..&=..|&...&...|
|000030e0| 26 d5 00 05 26 d7 00 06 | 26 dd 00 05 26 e1 00 06 |&...&...|&...&...|
|000030f0| 27 04 00 05 27 07 00 06 | 27 08 00 05 27 0c 00 06 |'...'...|'...'...|
|00003100| 27 1f 00 05 27 21 00 06 | 27 28 00 07 27 2b 00 06 |'...'!..|'(..'+..|
|00003110| 27 2d 00 05 27 31 00 06 | 27 3e 00 05 27 41 00 06 |'-..'1..|'>..'A..|
|00003120| 27 42 00 05 27 45 00 06 | 27 57 00 05 27 5a 00 06 |'B..'E..|'W..'Z..|
|00003130| 27 5b 00 05 27 5f 00 06 | 27 62 00 07 27 65 00 06 |'[..'_..|'b..'e..|
|00003140| 27 66 00 00 29 13 00 05 | 29 19 00 06 29 2e 00 05 |'f..)...|)...)...|
|00003150| 29 36 00 06 29 49 00 05 | 29 4b 00 06 29 56 00 05 |)6..)I..|)K..)V..|
|00003160| 29 5e 00 06 29 6d 00 05 | 29 70 00 06 29 79 00 05 |)^..)m..|)p..)y..|
|00003170| 29 7b 00 06 29 84 00 05 | 29 8c 00 06 29 95 00 05 |){..)...|)...)...|
|00003180| 29 9b 00 06 29 a3 00 05 | 29 a6 00 06 29 ab 00 05 |)...)...|)...)...|
|00003190| 29 ae 00 06 29 b3 00 05 | 29 b6 00 06 29 b7 00 05 |)...)...|)...)...|
|000031a0| 29 bd 00 06 29 c0 00 05 | 29 c4 00 06 29 d6 00 05 |)...)...|)...)...|
|000031b0| 29 d8 00 06 29 de 00 05 | 29 e2 00 06 29 fa 00 05 |)...)...|)...)...|
|000031c0| 2a 00 00 06 2a 10 00 05 | 2a 13 00 06 2a 14 00 05 |*...*...|*...*...|
|000031d0| 2a 18 00 06 2a 1b 00 07 | 2a 23 00 06 2a 25 00 00 |*...*...|*#..*%..|
|000031e0| 2a 27 ff ff 2a 26 ff ff | 00 00 00 a2 00 1d 00 10 |*'..*&..|........|
|000031f0| 00 0c 00 01 00 00 00 00 | 00 00 00 00 00 00 00 01 |........|........|
|00003200| 00 17 00 12 00 01 05 00 | 00 12 00 00 00 00 00 00 |........|........|
|00003210| 00 01 00 10 00 0c 00 01 | 05 00 00 00 00 00 00 00 |........|........|
|00003220| 00 00 00 07 00 10 00 0c | 00 01 01 00 00 00 00 00 |........|........|
|00003230| 00 00 00 00 00 00 00 10 | 00 0c 00 01 04 00 00 00 |........|........|
|00003240| 00 00 00 00 00 00 00 c7 | 00 0d 00 0a 00 03 01 00 |........|........|
|00003250| 00 0a 00 00 00 00 00 00 | 00 df 00 0d 00 0a 00 03 |........|........|
|00003260| 00 00 00 0a 00 00 00 00 | 00 00 00 1b 00 0d 00 0a |........|........|
|00003270| 00 03 02 00 00 09 00 00 | 00 00 00 00 00 00 00 13 |........|........|
|00003280| 00 0e 00 01 05 00 00 0e | 00 00 00 00 00 00 00 00 |........|........|
|00003290| 05 ac 00 17 00 12 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|000032a0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|000032b0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 0d |........|........|
|000032c0| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|000032d0| 00 0a 00 0d 00 0a 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|000032e0| 00 0c 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|000032f0| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 10 00 0c 00 10 |........|........|
|00003300| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003310| 00 0c 00 10 00 0c 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003320| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 10 |........|........|
|00003330| 00 0c 00 10 00 0c 00 10 | 00 0c 00 0d 00 0a 00 0d |........|........|
|00003340| 00 0a 00 0d 00 0a 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003350| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 0d |........|........|
|00003360| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003370| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003380| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003390| 00 0a 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|000033a0| 00 0c 00 0d 00 0a 00 0d | 00 0a 00 10 00 0c 00 10 |........|........|
|000033b0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|000033c0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|000033d0| 00 0c 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|000033e0| 00 0a 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|000033f0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003400| 00 0c 00 10 00 0c 00 0d | 00 0a 00 0d 00 0a 00 10 |........|........|
|00003410| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003420| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003430| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003440| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 0d |........|........|
|00003450| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003460| 00 0a 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003470| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003480| 00 0c 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003490| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|000034a0| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|000034b0| 00 0a 00 0d 00 0a 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|000034c0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|000034d0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|000034e0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|000034f0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003500| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003510| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 0d |........|........|
|00003520| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003530| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003540| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003550| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003560| 00 0a 00 0d 00 0a 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003570| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003580| 00 0c 00 10 00 0c 00 10 | 00 0c 00 0d 00 0a 00 0d |........|........|
|00003590| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|000035a0| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 10 00 0c 00 10 |........|........|
|000035b0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|000035c0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 0d 00 0a 00 0d |........|........|
|000035d0| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|000035e0| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|000035f0| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003600| 00 0a 00 0d 00 0a 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003610| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003620| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003630| 00 0c 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003640| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003650| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003660| 00 0a 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003670| 00 0c 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003680| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 10 00 0c 00 10 |........|........|
|00003690| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|000036a0| 00 0c 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|000036b0| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|000036c0| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 10 |........|........|
|000036d0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|000036e0| 00 0c 00 10 00 0c 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|000036f0| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 10 |........|........|
|00003700| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003710| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003720| 00 0c 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003730| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003740| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003750| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003760| 00 0a 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003770| 00 0c 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003780| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003790| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|000037a0| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|000037b0| 00 0a 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|000037c0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|000037d0| 00 0c 00 10 00 0c 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|000037e0| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|000037f0| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003800| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003810| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003820| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003830| 00 0a 00 0d 00 0a 00 10 | 00 0c 00 10 00 0c 00 00 |........|........|
|00003840| 00 08 03 47 fe d1 00 87 | 29 e4 00 00 00 16 00 01 |...G....|).......|
|00003850| 00 00 00 00 00 17 00 12 | 00 01 05 00 00 12 00 00 |........|........|
|00003860| 00 00 00 00 00 00 00 0c | 00 00 00 01 00 2a 00 03 |........|.....*..|
|00003870| 01 6c 01 e5 | |.l.. | |
+--------+-------------------------+-------------------------+--------+--------+